History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-11206
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: Kevin Lawrence
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Default for Current directory should be module root NOT project root

Created: 02 Nov 05 21:24   Updated: 06 Dec 07 18:52
Component/s: Project Configuration
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows XP

Build: 3,461
Fixed in build: 7,513
Severity: High


 Description  « Hide
When you run a JUnit test (for example bu right clicking a test method and choosing RUN TEST), IDEA uses the root directory of the Project as the CWD. This is almost always wrong. It should use the root of the module which contains the test.

This is much more annoying than it sounds because it means you have to create a custom configuration every time you run a test. If you forget, the test fails for mysterious reasons because it looks for files in the wrong place.

You can change the default CWD setting for the project but this does not help if you have multiple modules in a project that interact with the file system.



 All   Comments   Work Log   Change History      Sort Order:
Anna Kozlova - 23 Oct 07 18:36
Use $MODULE_DIR$ macros in default configuration settings. It would expand into module root directory.