Skip to content

Instantly share code, notes, and snippets.

@fomkin
Created January 12, 2015 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fomkin/88e20bd75e132d2e3f51 to your computer and use it in GitHub Desktop.
Save fomkin/88e20bd75e132d2e3f51 to your computer and use it in GitHub Desktop.
object ProgrammersBehaviorTestSuite extends TestSuite { // "Success"
val tests = TestSuite {
"When weather is fine it should" - { // "Success"
"go for a walk" - { assert(false) } // "Failure"
"go to ride a bike" - { assert(false) } // "Failure"
"drink tea on a terrace" - { assert(true) } // "Success"
}
}
}
/**
Now it looks like this:
ProgrammersBehaviorTestSuite - Success
When weather is fine it should - Success
go for a walk - Failure
go to ride a bike - Failure
drink tea on a terrace - Success
Want it to look like this:
ProgrammersBehaviorTestSuite
When weather is fine it should
[x] go for a walk
[x] go to ride a bike
[v] drink tea on a terrace
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment