Commit 379dd977 authored by Lukas Weber's avatar Lukas Weber Committed by Lukas Sommer

Added Tests and fixed missing tests for --debugMode

parent d84551f3
......@@ -57,6 +57,11 @@ class CommonArgParsersSpec extends FlatSpec with Matchers with Checkers {
checkParsed( P( debugMode ~ End ).parse(d) )
})
"The deleteProject switch" should "be parsed correctly by deleteProject" in
check(forAllNoShrink(deleteProjectsGen) { d =>
checkParsed( P( delProj ~ End).parse(d) )
})
"All valid implementation parameters" should "be parsed correctly by implementation" in
check(forAllNoShrink(implementationGen) { i =>
checkParsed( P( implementation ~ End ).parse(i) )
......@@ -103,6 +108,8 @@ private object CommonArgParsersSpec {
qstringGen
))
val deleteProjectsGen: Gen[String] = join(Seq(genLongOption("deleteProjects")))
val implementationGen: Gen[String] = join(Seq(
genLongOption("implementation"),
qstringGen
......
......@@ -40,7 +40,8 @@ private object ComposeParserSpec {
CommonArgParsersSpec.architecturesGen,
CommonArgParsersSpec.platformsGen,
FeatureParsersSpec.featuresGen,
CommonArgParsersSpec.debugModeGen
CommonArgParsersSpec.debugModeGen,
CommonArgParsersSpec.deleteProjectsGen
)
val optionsGen: Gen[String] = for {
n <- Gen.choose(1, 20)
......
......@@ -71,7 +71,9 @@ private object DesignSpaceExplorationParserSpec {
batchSizeGen,
basePath,
architecturesGen,
platformsGen
platformsGen,
debugModeGen,
deleteProjectsGen
)
val optionsGen: Gen[String] = for {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment