Skip to content

Commit

Permalink
filter jasmine out in stackframes
Browse files Browse the repository at this point in the history
  • Loading branch information
z13z authored and robstoll committed Aug 19, 2020
1 parent f20a4d8 commit b63677a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ expected that subject: () -> kotlin.Nothing (readme.examples.ReadmeSpec$1
Notice that stacks are filtered so that you only see what is of interest.
Filtering can be configured via [`ReporterBuilder`](#reporterbuilder) by choosing an appropriate
[AtriumErrorAdjuster](https://docs.atriumlib.org/latest#/doc/ch.tutteli.atrium.reporting/-atrium-error-adjuster/index.html).
Stack frames of Atrium and of test runners (Spek, Kotlintest and JUnit for JVM, mocha for JS) are excluded per default.
Stack frames of Atrium and of test runners (Spek, Kotlintest and JUnit for JVM, mocha and jasmine for JS) are excluded per default.
[Create a Feature Request](https://github.com/robstoll/atrium/issues/new?template=feature_request.md&title=[Feature])
in case you use a different runner, we can add yours to the list as well.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ actual class RemoveRunnerAtriumErrorAdjuster : FilterAtriumErrorAdjuster(), Atri
}

companion object {
val runnerRegex: Regex = Regex("[\\\\|/]mocha[\\\\|/]")
val runnerRegex: Regex = Regex("[\\\\|/](mocha|jasmine)[\\\\|/]")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class SampleJsTest {
throw IllegalArgumentException("oho... hello btw")
}.toThrow<IllegalArgumentException> {
messageContains("hello")
messageContains("jasmine")
}
}

Expand Down

0 comments on commit b63677a

Please sign in to comment.