mirror of
https://github.com/jlengrand/atrium.git
synced 2026-03-10 08:01:19 +00:00
Merge pull request #558 from robstoll/#337-filter-jasmine-in-stacktraces
#337 filter jasmine in stacktraces
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ actual class RemoveRunnerAtriumErrorAdjuster : FilterAtriumErrorAdjuster(), Atri
|
||||
}
|
||||
|
||||
companion object {
|
||||
val runnerRegex: Regex = Regex("[\\\\|/]mocha[\\\\|/]")
|
||||
val runnerRegex: Regex = Regex("[\\\\|/]node_modules[\\\\|/](mocha|jasmine)[\\\\|/]")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user