aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tests.rb
AgeCommit message (Collapse)Author
2016-01-21tests: add --only=<test>[/<method>] flagMartin Afanasjew
Simplify running a single test (or even a single method from a single test), which is useful when developing or debugging a test. Instead of `brew test TEST=test_diagnostic.rb TESTOPTS=--name=test_check_DYLD_vars` it is now possible to run `brew tests --only=diagnostic/check_DYLD_vars` to get the same effect. Similarly, `brew tests --only=diagnostic` maps to `brew test TEST=test_diagnostic.rb`. Closes Homebrew/homebrew#48279. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-21tests: allow passing --seed <number>Martin Afanasjew
This parameter is printed by every `brew tests` run and feeding it back into the test suite allows to get an identical run. Make it easier to do that by accepting the argument as it is printed during `brew tests`. This requires a slight adjustment to named-argument passing as the number that follows `--seed` is also seen as a named argument, but we usually only want to pass `TEST=<something>` and `TESTOPTS=<something>`.
2016-01-19tests: rm the coverage cache before each runBaptiste Fontaine
Closes Homebrew/homebrew#48209. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04tests: use predefined commit author for robustnessMartin Afanasjew
Some tests, that construct a Git repository for testing, will silently fail if the global Git user isn't properly set up. There are valid use cases for this, thus use a fixed commit author/committer for all tests instead of relying on the user's configuration.
2015-12-23tests: pass --trace and named args to rakeBaptiste Fontaine
Closes Homebrew/homebrew#47279. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-22tests: show fs leak resultXu Cheng
Closes Homebrew/homebrew#41956. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22test-bot: run brew tests in no-compat modeXu Cheng
Closes Homebrew/homebrew#42009. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-21tests: use ARGV.include? instead of ARGV.flag?Xu Cheng
2015-07-20'brew tests' optional coverage measure addedBaptiste Fontaine
Closes Homebrew/homebrew#41890. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-01-04tests.rb: use Homebrew.failed to send exit code.Mike McQuaid
2015-01-02Add Homebrew.install_gem_setup_path! function.Mike McQuaid
This uses the logic from tests.rb in man.rb too so that this can be shared in a few places.
2014-09-10Use bundler for test gem dependencies.Mike McQuaid
Closes Homebrew/homebrew#31986. References Homebrew/homebrew#31981.
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-21fix permisions on testsAdam Vandenberg
2014-05-21make `tests` an internal commandAdam Vandenberg