A simpler test framework?
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Jul 9 11:21:13 BST 2009
>>>>> "Gioele" == Gioele Barabucci <gioele at svario.it> writes:
Gioele> Vincent Ladeuil wrote:
>> Hmpf, typo there, I think you meant: so we could set up a project
>> to improve our test framework so that the tests too become easy
>> to write.
Gioele> I'd love to see a better test framework or, at least, a through guide to
Gioele> making new tests.
Gioele> I have a couple of patches with new little features that I'd like to send
Gioele> but I don't because I know that they cannot be commited as they are now,
Gioele> i.e. without tests to test these features.
Gioele> A simpler test framework could lower the barrier to
Gioele> development for newcomers, a barrier that now is
Gioele> quite high IMHO.
I'm not sure trying to define a simpler test framework will
work. IMHO, your learn to write tests like you learn to write
code: you start one day and from there you keep learning ;-)
How about you try to propose your branches as merges and see what
the reviewers have to say, specifying that you want guidance for
test writing should start the ball rolling...
Otherwise, if you can't find how to write low level tests, you
can still start by writing blackbox ones (bzrlib/tests/blackbox),
depending on the part you want to modify, you should be able to
find some simple examples. If you can't find them (may be they
don't exist or are not as simple as they should, *that* may be
fixed), again, ask, #bzr on IRC may also be a good place for
that.
Vincent
More information about the bazaar
mailing list