#16217 closed enhancement (wontfix)
[PATCH] Come up with runtest.py script.
Reported by: | marxin | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
The script runs a single test. Example usage:
./scripts/runtest.py ./test/unit/org/openstreetmap/josm/tools/GeometryTest.java
Compiling test
Running test
JUnit version 4.12
..System property josm.test.data is not set, using 'test/data'
.System property josm.test.data is not set, using 'test/data'
..System property josm.test.data is not set, using 'test/data'
Time: 1.063
OK (5 tests)
Attachments (1)
Change History (5)
by , 7 years ago
Attachment: | 0001-Come-up-with-runtest.py-script.patch added |
---|
comment:1 by , 7 years ago
Type: | defect → enhancement |
---|---|
Version: | → latest |
follow-up: 3 comment:2 by , 7 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 by , 7 years ago
Replying to Don-vip:
Thanks for submitting a new patch. But I'm sorry, JOSM is a Java project and we already have too many languages (Perl, Groovy, JavaScript...). I don't want to maintain a Python script just for this.
You have several options:
1) Run the test from your IDE
2) Keep a local script, see DevelopersGuide/Compiling#Individualtests
That's a pity, I bet it would be useful even for other users. Or is there any way how to run an individual test-case in Eclipse?
You can accept the patch and remove it once it's not maintained or not working?
comment:4 by , 7 years ago
It's very easy in Eclipse to run a single test, just right click on either the test class or the test method, and select "run as JUnit test". It's faster than typing the script path I think.
Thanks for submitting a new patch. But I'm sorry, JOSM is a Java project and we already have too many languages (Perl, Groovy, JavaScript...). I don't want to maintain a Python script just for this.
You have several options:
1) Run the test from your IDE
2) Keep a local script, see DevelopersGuide/Compiling#Individualtests