| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
To run Java2Script unit tests you must use a j2slib that contains "junit".
To build a j2slib with "junit" follow the description given in 'Building j2slib (The Runtime Library)' but when starting the Ant build make sure to set the Ant property j2s.lib.include.junit to true.
I.e. when starting Ant from the command line (in the 'net.sf.j2s.lib' directory)
When starting Ant from within Eclipse:
(Make sure the just build j2slib is used when running Java2Script code. See 'Building j2slib (The Runtime Library)' for details.)
While running the test output is written to the 'J2S Console' in Eclipse.
Click the button 'Run in External Browser' in the 'J2S Console' to re-run the test in an external browser. Especially when debugging JavaScript code using an external browser (and its 'Developer Tools') is the preferred way to go.
But also for "normal" test runs use the external browser because the output to the 'J2S console' is not always updated (see Issue #17).
| Back | FazBrowse Home | New Git URL |