arguments for the specification
an Example which body comes from the execution of that example in a brand new instance of the Specification
filter fragments depending on the command line arguments and the current arguments in the specification
the filter method filters examples based on their description, keeping only the ones matching the ex attribute of the arguments object
the filter method filters examples based on their description, keeping only the ones matching the ex attribute of the arguments object
fragments according to their previous execution state
filter fragments according to tags by collecting tags as applicable to each fragment and applying them
a Description for the TestSuite
This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse.
This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse. In the first the test case names don't need to have the hashcode example.
true if the this current piece of code contains name in its stacktrace.
return true if the current test is executed from an IDE
return true if the current test is executed from an IDE
return true if the current test is executed with eclipse
return true if the current test is executed with eclipse
return true if the current test is executed with Gradle
return true if the current test is executed with Gradle
return true if the current test is executed with Intellij
return true if the current test is executed with Intellij
return true if the current test is executed with Maven
return true if the current test is executed with Maven
return true if the current test is executed with sbt
return true if the current test is executed with sbt
This function "clones" the body of each example if the applicable arguments indicate that the specification should be isolated
This function "clones" the body of each example if the applicable arguments indicate that the specification should be isolated
system properties
system properties
run the suite by executing each fragment related to a description: - execute all fragments (including Steps which are reported as steps) - for each result, report the failure/error/skipped or pending message as a junit failure or ignored event on the RunNotifier
run the suite by executing each fragment related to a description: - execute all fragments (including Steps which are reported as steps) - for each result, report the failure/error/skipped or pending message as a junit failure or ignored event on the RunNotifier
select function returning a filtered seq of Fragments
select function returning a filtered seq of Fragments
select function returning a filtered seq of Fragments
select function returning a filtered seq of Fragments
the sequence method returns sequences of fragments which can be executed concurrently.
the sequence method returns sequences of fragments which can be executed concurrently. Among the constraints to respect, any Step Fragment must be executed before any following Example Fragment, so that "first" and "last" actions are executed properly in a Specification
If the arguments specify that the specification is sequential, then each fragment will be executed individually
sequence function returning an ordered seq of seq of Fragments
sequence function returning an ordered seq of seq of Fragments
specification to execute
specification to execute
From a Seq of Fragments create a seq of corresponding tags for each fragment, considering that:
From a Seq of Fragments create a seq of corresponding tags for each fragment, considering that:
TaggedAs
fragment is applicable to the the previous fragmentTag
fragment is applicable to the the next fragmentAsSection
fragment is applicable to the the previous fragment to the next AsSection
fragment with the same nameSection
fragment is applicable to the the next fragment to the next Section
fragment with the same name
The JUnitRunner class is a junit Runner class meant to be used with the RunWith annotation to execute a specification as a JUnit suite.
The implementation is using a description Fold to fold the fragments into a tree of Description objects and a Map relating each Description to a Fragment to execute.