Hi Pete,
> Dinclude=("checkin") yields no tests run. Without the include or
I think that this is because you included ("checkin"). Can you try to
just write -Dinclude=checkin? I tried it and it works for me.
> DSL. He was wondering if the tag function could be used as the section
> function is, as a marker after the example rather than as before.
There are actually several "tags fragments" enabling the tagging
functionality:
- Tag: tags the next fragment
- TaggedAs: tags the previous one
- Section: starts a section with the next fragment or ends a section
with the previous one
- AsSection: starts a section with the previous fragment or ends a
section with the previous one
In the case of a mutable.Specification I propose that we can write:
tag("integration") // create a Tag fragment
"this example" >> {
}
"this other example" >> {
...
} taggedAs("integration") // create a TaggedAs fragment
"this third example" >> {
...
} asSection("integration") // create an AsSection fragment
// and so on
// ...
// ..
"this last example" >> {
...
} asSection("integration") // create an AsSection fragment to close
the section
We could also allow the tagging of a single example like this:
"this other example" >> {
...
} tag("integration") // create a TaggedAs fragment
But newlines would be significant! Because
"this other example" >> {
...
}
tag("integration") // create a Tag fragment tagging the next one
What do you think? Maybe the last proposition is the best one,
compact, doing the job, and hopefully
not to ambiguous w.r.t the newline thing?
Eric.