Skip to content

Commit

Permalink
@monperrus at work
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Nov 6, 2020
1 parent c03813d commit 27eb355
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .travis/travis-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env bash

cd dspot && mvn -Pcoveralls -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID -DdoIntegrationTests=true clean test jacoco:report coveralls:report
set -e
cd dspot

mvn test -D test=eu.stamp_project.dspot.selector.ChangeDetectorSelectorTest

mvn -Pcoveralls -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID -DdoIntegrationTests=true clean test jacoco:report coveralls:report
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,11 @@ public void testRunPitDescartes() throws Exception {
@Test
public void testFailingPit() throws Exception {

setUp("src/test/resources/mockito/", "", false);

try {
builder.runPit();
fail("Should have thrown a RuntimeException");
} catch (RuntimeException e) {
//success
}

try {
builder.runPit(launcher.getFactory().Class().get("info.sanaulla.dal.BookDALTest"));
fail("Should have thrown a RuntimeException");
setUp("src/test/resources/mockito/", "", false);
fail();
} catch (RuntimeException e) {
//success
assertTrue(e.getMessage().startsWith("Maven build failed"));
}
}

Expand Down

0 comments on commit 27eb355

Please sign in to comment.