launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #07220
Bzr plugin for guessing relevant test modules: Fault line
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I've hacked up a bzr plugin for guessing which test modules you should
run considering the files you've changed.
https://launchpad.net/fault-line
To install:
bzr branch lp:fault-line ~/.bazaar/plugins/faultline -Derror
It works by looking at previous revisions where the file was changed,
and seeing what test files were changed at the same time. You can
specify the files, or it will autodetect them by looking at your working
tree.
e.g.
$ bzr faultline
lib/lp/soyuz/test /test_archive.py
lib/lp/soyuz/scripts/tests/test_copypackage.py
lib/lp/soyuz/browser/tests/test_archive_webservice.py
lib/lp/code/windmill/tests/test_recipe_request_build.py
It's intended to work with the Launchpad codebase, and assumes files
whose names start with "test_" are test modules.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3lAHUACgkQ0F+nu1YWqI10yACfct0bpgC13QLJG/pFPlpVtloJ
6D4AmgLk1xT/AN/x8YFdaaC8POPibN0l
=zXCz
-----END PGP SIGNATURE-----
Follow ups