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
public class TestRailReportExtension implements TestWatcher, BeforeAllCallback { | |
private static boolean started = false; | |
private static final String TESTRAIL_REPORT = "TEST_RAIL"; | |
private static List<Result> results = new CopyOnWriteArrayList<>(); | |
@Override | |
public void testDisabled(ExtensionContext extensionContext, Optional<String> optional) { | |
addResult(extensionContext, TestRailStatus.DISABLED); | |
} |
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
repositories { | |
maven { url "https://jitpack.io" } | |
} | |
dependencies { | |
implementation 'org.junit.jupiter:junit-jupiter:5.6.2' | |
implementation 'com.github.legionivo:testrail-api-java-client:1.0.7' | |
} | |
test { | |
useJUnitPlatform() | |
testLogging { |
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
public class TestRailReportExtension implements TestWatcher, BeforeAllCallback { | |
private static boolean started = false; | |
private static final String TESTRAIL_REPORT = "TEST_RAIL"; | |
private static List<Result> results = new CopyOnWriteArrayList<>(); | |
@Override | |
public void testDisabled(ExtensionContext extensionContext, Optional<String> optional) { |
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
/** | |
* Custom Extension which executes code only once before all tests are started and after all tests finished. | |
* This is temporary solution until https://github.com/junit-team/junit5/issues/456 will not be released | |
*/ | |
public class SystemSetupExtension implements BeforeAllCallback, ExtensionContext.Store.CloseableResource { | |
private static boolean systemReady = false; | |
/** |