Regression Tests
From WalaWiki
Currently we are running a substantial suite of regression tests at Watson. Some of these tests are proprietary, and some we've made open-source.
BTW ... JUnit tests are a great way to contribute to the WALA project.
[edit]
Running the tests yourself
- Check out the com.ibm.wala.core.tests and com.ibm.wala.core.testdata projects into your workspace.
- Manually run ant, which will build the file com.ibm.wala.core.testdata/bin/com.ibm.wala.core.testdata_1.0.0.jar and download some dependent jars. Do this by running the build.xml file in the com.ibm.wala.core.testdata project. In Eclipse, you can select the file, right-click, and Run as then Ant build... Make sure the default build.update.jar target is selected to be run.
- Run the JUnit tests with the wala.core or wala.core short profile launchers (or wala.core short profile (non-windows) if you're not on a Windows machine). The former exercises a wider test suite than the latter, and will take longer to run.
[edit]
Protocol for checking in code
If you have been granted check-in privileges to WALA, please observe the following:
- Run the wala.core short profile regression driver before checking in any change to wala.core or wala.shrike.
- If you make any change which might affect the CAst system, additionally run the following drivers:
- com.ibm.wala.cast.test-JUnit
- com.ibm.wala.cast.java.test-JUnit
- com.ibm.wala.cast.js.test-JUnit
- If your check-in is non-trivial, please create additional JUnit tests as required to make sure the change works as intended.
- All tests are expected to pass. Every time. Do not check in code if any JUnit test fails.
- All tests are expected to pass. Every time. Do not check in code if any JUnit test fails.
- Don't Forget ....
- All tests are expected to pass. Every time. Do not check in code if any JUnit test fails.
- If your change is non-trivial, add a note on the wiki for the Release Notes for the next release.
