Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
379dd977
Commit
379dd977
authored
May 29, 2019
by
Lukas Weber
Committed by
Lukas Sommer
Jun 07, 2019
Browse files
Added Tests and fixed missing tests for --debugMode
parent
d84551f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/test/scala/tapasco/parser/CommonArgParsersSpec.scala
View file @
379dd977
...
@@ -57,6 +57,11 @@ class CommonArgParsersSpec extends FlatSpec with Matchers with Checkers {
...
@@ -57,6 +57,11 @@ class CommonArgParsersSpec extends FlatSpec with Matchers with Checkers {
checkParsed
(
P
(
debugMode
~
End
).
parse
(
d
)
)
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
"All valid implementation parameters"
should
"be parsed correctly by implementation"
in
check
(
forAllNoShrink
(
implementationGen
)
{
i
=>
check
(
forAllNoShrink
(
implementationGen
)
{
i
=>
checkParsed
(
P
(
implementation
~
End
).
parse
(
i
)
)
checkParsed
(
P
(
implementation
~
End
).
parse
(
i
)
)
...
@@ -103,6 +108,8 @@ private object CommonArgParsersSpec {
...
@@ -103,6 +108,8 @@ private object CommonArgParsersSpec {
qstringGen
qstringGen
))
))
val
deleteProjectsGen
:
Gen
[
String
]
=
join
(
Seq
(
genLongOption
(
"deleteProjects"
)))
val
implementationGen
:
Gen
[
String
]
=
join
(
Seq
(
val
implementationGen
:
Gen
[
String
]
=
join
(
Seq
(
genLongOption
(
"implementation"
),
genLongOption
(
"implementation"
),
qstringGen
qstringGen
...
...
src/test/scala/tapasco/parser/ComposeParserSpec.scala
View file @
379dd977
...
@@ -40,7 +40,8 @@ private object ComposeParserSpec {
...
@@ -40,7 +40,8 @@ private object ComposeParserSpec {
CommonArgParsersSpec
.
architecturesGen
,
CommonArgParsersSpec
.
architecturesGen
,
CommonArgParsersSpec
.
platformsGen
,
CommonArgParsersSpec
.
platformsGen
,
FeatureParsersSpec
.
featuresGen
,
FeatureParsersSpec
.
featuresGen
,
CommonArgParsersSpec
.
debugModeGen
CommonArgParsersSpec
.
debugModeGen
,
CommonArgParsersSpec
.
deleteProjectsGen
)
)
val
optionsGen
:
Gen
[
String
]
=
for
{
val
optionsGen
:
Gen
[
String
]
=
for
{
n
<-
Gen
.
choose
(
1
,
20
)
n
<-
Gen
.
choose
(
1
,
20
)
...
...
src/test/scala/tapasco/parser/DesignSpaceExplorationParserSpec.scala
View file @
379dd977
...
@@ -71,7 +71,9 @@ private object DesignSpaceExplorationParserSpec {
...
@@ -71,7 +71,9 @@ private object DesignSpaceExplorationParserSpec {
batchSizeGen
,
batchSizeGen
,
basePath
,
basePath
,
architecturesGen
,
architecturesGen
,
platformsGen
platformsGen
,
debugModeGen
,
deleteProjectsGen
)
)
val
optionsGen
:
Gen
[
String
]
=
for
{
val
optionsGen
:
Gen
[
String
]
=
for
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment