[RFC] Changes to 'selftest --starting-with'
John Arbash Meinel
john.meinel at canonical.com
Wed Aug 20 19:30:03 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've been using 'bzr selftest -s' a lot lately, and wanted to propose some
updates. For starters I'd like to say it has been great to use so far. Thanks
a lot to Vincent for implementing it. TDD is a lot easier when the
startup+run+teardown time is seconds rather than almost a minute.
There are a few small issues that I'd like to bring up:
1) Running 2 modules. For some commands I'd like to do something like:
bzr selftest -s bzrlib.tests.test_command \
-s bzrlib.tests.blackbox.test_command
aka, run both the blackbox tests and the direct tests. At the moment, I just
run it twice, which is ok. And I can do "foo ; blackboxfoo" so they chain but
it isn't quite as nice.
2) The prefixes are rather long. Having to type out 'bzrlib.tests.' all the
time. I know Vincent wanted to play with it a bit and see what worked for him.
My proposal would be to use something like:
bzr selftest -s B.T.test_command
So the single capital letters would be used as abbreviations. The current
supported ones would be:
B. => bzrlib.
B.T. => bzrlib.tests.
B.P. => bzrlib.plugins.
B.T.B. => bzrlib.tests.blackbox.
I think that covers all the major prefixes. Obviously you can argue for stuff
like "B.T.BI. => bzrlib.tests.branch_implementations."
Another possible route is to make the whole thing an alias, and instead have:
BT. => bzrlib.tests.
BP. => bzrlib.plugins.
BTB. => bzrlib.tests.blackbox.
Either would be fine with me. Or if we wanted to do:
:BT. => bzrlib.tests.
To look something like the ":parent" that we use for other aliases.
Anyone else have ideas?
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIrGKrJdeBCYSNAAMRArFYAJ9aNWjb9NyMijt7llit42Cg9Pf6kACggdA1
3rKLD2uHko51/v911QMUb3c=
=CZ8G
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list