Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from linkedin/fix-skip-tests
Fix problem that skipped tests are recognized as successful
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
helpers/src/main/java/com/linkedin/plugin/FailSkippedTestsListener.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.linkedin.plugin; | ||
|
||
import org.testng.ITestResult; | ||
import org.testng.TestListenerAdapter; | ||
|
||
/** | ||
* Created by rli on 2/9/16. | ||
* | ||
* This is a workaround for a bug in sbt testng plugin that skipped tests won't fail the entire test suite. | ||
*/ | ||
public class FailSkippedTestsListener extends TestListenerAdapter { | ||
|
||
@Override | ||
public void onTestSkipped(ITestResult testResult) { | ||
testResult.setStatus(ITestResult.FAILURE); | ||
} | ||
} |
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
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