| Summary: | Run As > JUnit Plugin Test fails if the test is in a source-folder marked as 'includes test sources' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Christoph Laeubrich <laeubi> | ||||
| Component: | UI | Assignee: | Christoph Laeubrich <laeubi> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | julian.honnen, mistria, register.eclipse, Vikas.Chandra | ||||
| Version: | 4.18 | ||||||
| Target Milestone: | 4.20 M2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: |
https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/178783 https://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=b5ca52322cdb7c91b49fca35800a2f3e21705a18 |
||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 572627, 572743 | ||||||
| Attachments: |
|
||||||
|
Description
Christoph Laeubrich
source.. = src/,\
test/ <-------ADD TEST FOLDER
Adding test as src in build.properties should work. Can you check
I think PDE compiler should output this warning even if the src folder is a test folder.
(In reply to Vikas Chandra from comment #1) > Adding test as src in build.properties should work. This would work but contradicts the whole idea of "test" source folders. These should not be part of the final artifact but only be on the "test-classpath". (In reply to Christoph Laeubrich from comment #2) > (In reply to Vikas Chandra from comment #1) > > Adding test as src in build.properties should work. > > This would work but contradicts the whole idea of "test" source folders. > These should not be part of the final artifact but only be on the > "test-classpath". I tried on 4.12 and it doesnt work there. I dont think this scenario ever worked since the test folders were introduced in 4.8. (In reply to Vikas Chandra from comment #3) > I tried on 4.12 and it doesnt work there. I dont think this scenario ever > worked since the test folders were introduced in 4.8. I also assume that this never was tested before. I'm currently adding support for this to tycho and it would thus be good if PDE supports this too. I'll take a look into this. New Gerrit change created: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/178783 Created attachment 286094 [details]
Example project
The PR is now ready for review, I attached an example that fails before but succeeds after applying the patch. Gerrit change https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/178783 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=b5ca52322cdb7c91b49fca35800a2f3e21705a18 Christoph , can you verify this fix ? |