|
|
@ -36,8 +36,8 @@ class SimpleTestReportFormatterSpec extends Specification {
|
|
|
|
|
|
|
|
|
|
|
|
where: "Possible variants of tests"
|
|
|
|
where: "Possible variants of tests"
|
|
|
|
isPassed || expectedFormat
|
|
|
|
isPassed || expectedFormat
|
|
|
|
true || "✓ A simple test\n\tThen Then block\n"
|
|
|
|
true || "✓ A simple test\n\tThen: Then block\n\n"
|
|
|
|
false || "⨯ A simple test\n\tThen Then block\n"
|
|
|
|
false || "⨯ A simple test\n\tThen: Then block\n\n"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def "If the map of methods have GivenWhenThen blocks."() {
|
|
|
|
def "If the map of methods have GivenWhenThen blocks."() {
|
|
|
@ -61,8 +61,8 @@ class SimpleTestReportFormatterSpec extends Specification {
|
|
|
|
|
|
|
|
|
|
|
|
where: "Possible variants of tests"
|
|
|
|
where: "Possible variants of tests"
|
|
|
|
isPassed || expectedFormat
|
|
|
|
isPassed || expectedFormat
|
|
|
|
true || "✓ A simple test\n\tGiven Given block\n\tWhen When block\n\tThen Then block\n"
|
|
|
|
true || "✓ A simple test\n\tGiven: Given block\n\tWhen: When block\n\tThen: Then block\n\n"
|
|
|
|
false || "⨯ A simple test\n\tGiven Given block\n\tWhen When block\n\tThen Then block\n"
|
|
|
|
false || "⨯ A simple test\n\tGiven: Given block\n\tWhen: When block\n\tThen: Then block\n\n"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|