Created
December 30, 2011 12:35
-
-
Save dweiss/1539653 to your computer and use it in GitHub Desktop.
junit4 instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get the code from my github fork: | |
git clone git@github.com:dweiss/lucene-solr.git --depth 1 -b junit4 | |
cd lucene-solr/lucene | |
# Get a baseline for core tests running on trunk/ant macros. | |
git checkout trunk | |
ant test-core -Dtestcase=compileonly | |
# This is a single run and it depends on the seed, but we'll consider | |
# it a baseline -> write down the execution time or remember it. | |
ant test-core -Dtests.seed=random | |
# Switch over to junit4 branch and recompile. | |
git checkout junit4 | |
ant test-core -Dtestcase=compileonly | |
# An initial pass collects statistics; these can be stored with the project to bootstrap, | |
# but for now they're zero. Adjust the number of CPUs to your system: | |
# typically, you'll want the physical number of cores - 1 (reserved for the aggregator). | |
# tests.seed is set to an empty value because junit4 and ltc use a different format! So there | |
# will be some variability across test executions (and that's good because estimates will vary). | |
ant test-core -Dtests.seed= -Dtests.cpus=4 | |
ant test-core -Dtests.seed= -Dtests.cpus=4 | |
ant test-core -Dtests.seed= -Dtests.cpus=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment