You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2023/08/14 14:31:00 UTC
[jira] [Comment Edited] (CASSANDRA-18750) Make unit tests compatible with the tmp.dir property
[ https://issues.apache.org/jira/browse/CASSANDRA-18750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754109#comment-17754109 ]
Maxim Muzafarov edited comment on CASSANDRA-18750 at 8/14/23 2:30 PM:
----------------------------------------------------------------------
When I'm trying to debug a piece of code I've come across, it's more convenient to have the temporary test files under the directory in the project's root, so I can see them all (and check the contents) right from the IDE I'm using during debugging.
I looked for a good candidate for this directory and found the {{data}} is already set for the [IntelliJ workspace config|https://github.com/apache/cassandra/blob/trunk/ide/idea/workspace.xml#L12] and is also included into the [gitignore|https://github.com/apache/cassandra/blob/trunk/.gitignore#L9], but it is not cleared by the ant. Randomization is still required for unit tests, so I think ./data/\{$random}/ is a good choice.
was (Author: mmuzaf):
When I'm trying to debug a piece of code I've come across, it's more convenient to have the temporary test files under a project's root directory, so I can to see them all (and check the contents) right from the IDE I'm using during debugging.
I looked for a good candidate for this directory and found the {{data}} is already set for the [IntelliJ workspace config|https://github.com/apache/cassandra/blob/trunk/ide/idea/workspace.xml#L12] and is also included into the [gitignore|https://github.com/apache/cassandra/blob/trunk/.gitignore#L9], but it is not cleared by the ant. Randomization is still required for unit tests, so I think ./data/\{$random}/ is a good choice.
> Make unit tests compatible with the tmp.dir property
> ----------------------------------------------------
>
> Key: CASSANDRA-18750
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18750
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Derek Chen-Becker
> Assignee: Derek Chen-Becker
> Priority: Normal
>
> Several unit tests hard-code file paths under the "/tmp" directory, which means they do not honor the {{tmp.dir}} ant build property. These should be updated so that when the user specifies {{tmp.dir}}, they can be certain that any files or directories created by the unit tests will be in their specified location.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org