Skip to content

Unit Tests

Craig Macdonald edited this page Apr 2, 2020 · 4 revisions

Terrier has an extensive test suite. Most of this is in the terrier-tests subproject

Running all tests

mvn package will run all tests

They can also be executed using your favourite build tool, such as Eclipse.

Travis-CI runs all tests after each commit.

Running a single test

It is possible to run a single unit test

mvn test -pl org.terrier:terrier-tests -Dtest=TestSimpleFileCollection

The test name does not need to be fully qualified.

mvn test may require mvn install first.

This appears to work better without needing mvn install

mvn test -DfailIfNoTests=false  -Dtest=TestSimpleFileCollection
Clone this wiki locally