Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

Change History (5)

comment:1 by marxin, 7 years ago

Type: defectenhancement
Version: latest

comment:2 by Don-vip, 7 years ago

Resolution: wontfix
Status: newclosed

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

in reply to:  2 comment:3 by marxin, 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 Don-vip, 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.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.