RFR(S) : 8038186 : [TESTBUG] improvements of test j.l.i.MethodHandles (original) (raw)
Igor Ignatyev igor.ignatyev at oracle.com
Sat Mar 29 23:07:54 UTC 2014
- Previous message: RFR(S) : 8038186 : [TESTBUG] improvements of test j.l.i.MethodHandles
- Next message: Process API Updates (JEP 102)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
John,
unfortunately, I've already pushed my changes w/o junit annotation. But I have the dirty patch which adds "jtreg support" to netbeans:
add test.single action for test folder to 'ide-actions' section in JDK project -- jdk/make/netbeans/j2se/nbproject/project.xml:
test-selected-file-in-test run.files ${root}/test .java$ relative-path
create jdk/make/netbeans/j2se/nbproject/ide-file-targets.xml file (it's partially generated by netbeans):
Must set property 'run.class' Must set property 'run.files'
open jdk/make/netbeans/j2se/nbproject
select your favorite tests in 'Tests' fileset
click 'Test File(s)' in a context menu or in 'Run' menu or press Ctrl-F6
...
PROFIT
Hope you'll find it useful.
PS you have to set 'JT_HOME' environment variable, it should point to jtreg-root directory.
Igor
On 03/29/2014 10:58 PM, John Rose wrote:
On Mar 28, 2014, at 2:29 AM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com <mailto:vladimir.x.ivanov at oracle.com>> wrote:
PS: John mentioned recently that there's a convention for java/lang/invoke tests to be in JUnit format. I'm not sure it'll improve the code in any way (maybe TestNG will?). I hope John will express his opinion on this, if it's important. If a test is in JUnit format, please keep it that way. I (at least) run these tests from NetBeans which knows about JUnit. Extracting logic from MHT and changing the test framework directly dilutes my interactive testing workflow. If my IDE had a jtreg plugin, I wouldn't need to worry about which jtreg tests use which style, but the world isn't perfect, yet. — John P.S. Same comment to the people that are eager to change JUnit to TestNG apparently just because it's the new thing. TestNG was a step backwards in my workflow because the CLI stinks compared to JUnit, making it nigh-impossible to manually perform one-off runs. I assume that will be fixed but for now I patch my workspace back to JUnit in order to work in my IDE.
mlvm-dev mailing list mlvm-dev at openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
- Previous message: RFR(S) : 8038186 : [TESTBUG] improvements of test j.l.i.MethodHandles
- Next message: Process API Updates (JEP 102)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]