Skip to content

Commit

Permalink
Omit unit tests tagged with ‘#delay’ by default
Browse files Browse the repository at this point in the history
This patch changes the default Busted configuration so that it will
skip the most time-consuming tests.  But the patch also provides a
second configuration so that we can use

    $ busted --run=all

to execute every test in the test suite.
  • Loading branch information
Eric James Michael Ritz committed Sep 3, 2013
1 parent f8ff730 commit e9936ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .busted
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@ return {
default = {
ROOT = "tests",
pattern = "spec.lua$",
}
["defer-print"] = true,
["exclude-tags"] = "delay",
},
all = {
ROOT = "tests",
pattern = "spec.lua$",
["defer-print"] = true,
},
}

0 comments on commit e9936ed

Please sign in to comment.