Hi,
With Jonathan Druart, we have been working on a Koha module in
order to simplify the writing of tests. For example, when we
want to test an order, we have to instantiate first a
bookseller, a basket, a budget and a biblio. In the end, there
are more lines which instantiate all the needed objects than
lines of test.
The concept of this module : TestBuilder is to generate
automatically the foreign keys of a specific entry in the
database. You can choose the inserted values or let them be
generated randomly.
The bug report related to the TestBuilder is bug
12603.
You can see examples of the use of TestBuilder on
existing files : bug
12604, bug
12605, bug
12606, bug
12607.
Regards,
Yohann