-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
dda791c
commit 5f6ac38
Showing
7 changed files
with
57 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
*.iml | ||
target | ||
target | ||
bak |
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
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
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
22 changes: 22 additions & 0 deletions
22
src/test/java/io/hgc/jarspec/fixtures/SkippedTestSpec.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,22 @@ | ||
package io.hgc.jarspec.fixtures; | ||
|
||
import io.hgc.jarspec.JarSpecJUnitRunner; | ||
import io.hgc.jarspec.Specification; | ||
import io.hgc.jarspec.SpecificationNode; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.fail; | ||
|
||
@RunWith(JarSpecJUnitRunner.class) | ||
public class SkippedTestSpec implements Specification { | ||
@Override | ||
public SpecificationNode root() { | ||
return describe("skipped", () -> by( | ||
describe("a describe marked as skipped", () -> | ||
it("has a failing test", () -> fail("skipped test should not run") | ||
)).skip(), | ||
it("is a statement with no test"), | ||
it("is a statement marked as skipped", () -> fail("skipped test should not run")).skip() | ||
)); | ||
} | ||
} |