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 07d9173
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 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 @@ -149,7 +149,7 @@ public void runPit(CtType<?>... testClasses) {
"" //
};
if (this.runGoals(true, goals) != 0) {
throw new RuntimeException("Maven build failed! Enable verbose mode for more information (--verbose)");
throw new RuntimeException("Maven build failed! Enable verbose mode for more information (--verbose)" + t);
}
} catch (Exception e) {
throw new RuntimeException(e);
Expand Down
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 07d9173

Please sign in to comment.