Regression_Tests - nimakarimipour/WALAWiki GitHub Wiki
title: Regression Tests permalink: /Regression_Tests/
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.
Running the tests yourself
- Check out the
com.ibm.wala.core.tests
andcom.ibm.wala.core.testdata
projects into your workspace. - Manually run
ant
, which will build the filecom.ibm.wala.core.testdata/bin/com.ibm.wala.core.testdata_1.0.0.jar
and download some dependent jars. Do this by running thebuild.xml
file in thecom.ibm.wala.core.testdata
project. In Eclipse, you can select the file, right-click, andRun as
thenAnt build...
Make sure the defaultbuild.update.jar
target is selected to be run. - Run the JUnit tests with the
wala.core
orwala.core short profile
launchers (orwala.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.
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 towala.core
orwala.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.