[MAGNOLIA-5517] unit-tests should work with default intellj import Created: 26/Nov/13 Updated: 27/Nov/13 Resolved: 26/Nov/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Christoph Meier | Assignee: | Jan Haderka |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Date of First Response: |
| Description |
|
On branch 4.5.x (maybe on master, too, must be checked) lots of test are failing when runned with intelliJ. There is a "workaround" to set the working directory for the test explicitely. (see screenshot). Or. alternatively, the sub-project which contains the test can be imported "stand-alone". So. All the unit test must work with "usual" project-imports without any IDE-settings for the test. |
| Comments |
| Comment by Jaroslav Simak [ 26/Nov/13 ] |
|
In Run->Edit configuration->Defaults->JUnit->Working directory set the value $MODULE_DIR$ and Intellij will set the relative path in all junits just like Maven. I'd say this issue can be closed as "Not an issue" |