New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK9 modules support for JUnitTask #18
Conversation
I've forwarded the pull request to jigsaw-dev mailing list for comments. |
Thanks so much Tomáš and sorry for taking so long to get back to you. I may be reading the code wrong, but do we end up with the modules being on the CLASSPATH as well as the module path if JUnit ist't part of the CLASSPATH? Can this do harm? The code return loader.getResource("junit.framework.Test") != null; looks curious to me. I recall applying a fix to Ant's scriptdef subsystem because we've been told you wouldn't be able to load classes as resources anymore (we used And one nit, Ant has been bitten by locale sensitive bugs before, please use |
Rm Beer on dev@ant.apache.org replies: 2016-05-22 6:41 GMT-03:00 bodewig git@git.apache.org: |
Have you seen my comments of "22 May", @tzezula ? |
Sorry I've overlooked the comment. Regarding the JUnit lookup. When the JUnit is not found on the classpath it's searched on the modulepath. In fact the module path is used for 2 things here. First it's passed to the forked external process running the test(s). The presence of modulepath requires fork as there is no way how to change the module path of existing VM except of running the JUnit in a custom The code: The toLowerCase problem is fixed by: 1fc1ce1 |
I also improved the black-box test example in JUnit manual. The |
Thanks, looks good to me. Unfortunately |
OK, I will rebase to current master. |
…NAMED is needed when test has a suite method.
Should be rebased. Let me know in case of any problems. |
this is the combined patch or #18 which couldn't be applied via `git am`
Unfortunately Thanks a lot. |
Thanks a lot Stefan! |
this is the combined patch or #18 which couldn't be applied via `git am`
Changes:
As seen in JUnitTask + JDK9 question thread there are many ways how to write and execute unit test in the JDK9 involving several java options (
-addmods
,-Xpatch
,-XaddExports
,-XaddReads
).The JunitTask can
Currently the patch contains the 1st. solution.
Thanks for comments!