Merge pull request #558 from robstoll/#337-filter-jasmine-in-stacktraces

#337 filter jasmine in stacktraces
This commit is contained in:
Robert Stoll
2020-08-22 22:51:55 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -8,6 +8,6 @@ actual class RemoveRunnerAtriumErrorAdjuster : FilterAtriumErrorAdjuster(), Atri
}
companion object {
val runnerRegex: Regex = Regex("[\\\\|/]mocha[\\\\|/]")
val runnerRegex: Regex = Regex("[\\\\|/]node_modules[\\\\|/](mocha|jasmine)[\\\\|/]")
}
}