I’ll continue my instructions regarding how to set up JSDT development infrastructure.
Previously
- I set up the build target
- I checked out the code
- I updated to the latest debug plugins to resolve compilation issues.
Run the unit tests
Now I want to verify that the unit tests for JSDT pass. (TDD — we should launch the tests before the product, right?)
Nitin Dahyabhai, the JSDT lead, pointed out that the first project above, contains a launch config to run all of the JSDT unit tests.
I will need to check out these additional projects from the webtools CVS repository.
- org.eclipse.jsdt/development/org.eclipse.wst.jsdt.unittests
- sourceediting/tests/org.eclipse.wst.jsdt.web.core.tests
- sourceediting/tests/org.eclipse.wst.jsdt.web.ui.tests
The checked in launch config makes running easy. Open Run Configurations – select JSDT Tests. Hit Run. They all pass, so I see green:
Next: Launching the Product
Disclaimer: I’m not on the JSDT team, so this may not be exactly how they do it. But it’s what I’ve done to get it working.