This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create TestNG suite folder automatically
Create given suite directory if it doesn't exist to improve user experience. #120 Signed-off-by: Dmytro Serdiuk <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
sunshine-testng/src/test/java/io/github/tatools/sunshine/testng/LoadableTestNGSuiteTest.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,30 @@ | ||
package io.github.tatools.sunshine.testng; | ||
|
||
import io.github.tatools.sunshine.core.Condition.Fake; | ||
import io.github.tatools.sunshine.core.SuiteException; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.rules.TemporaryFolder; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
||
/** | ||
* @author Dmytro Serdiuk ([email protected]) | ||
* @version $Id$ | ||
* @since 0.2 | ||
*/ | ||
public class LoadableTestNGSuiteTest { | ||
|
||
@Rule | ||
public TemporaryFolder testFolder = new TemporaryFolder(); | ||
|
||
@Test | ||
public void testAutomaticSuiteDirectoryCreation() throws SuiteException { | ||
new LoadableTestNGSuite( | ||
ArrayList::new, | ||
this.testFolder.getRoot().getAbsolutePath() + "/custom", | ||
new Fake(true) | ||
).tests(); | ||
} | ||
} |