Presentation of TestBuilder
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 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12603>. You can see examples of the use of /TestBuilder/ on existing files : bug 12604 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12604>, bug 12605 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12605>, bug 12606 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12606>, bug 12607 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12607>. Regards, Yohann
Hi all, I just wanted to announce that this week is my last week of internship at BibLibre. I'm glad to have been able to contribute to Koha and improve the unit tests. I would like to thank you for your support and your help, especially BibLibre. However I didn't receive much feedback on the module I wrote in order to simplify the writing of unit tests : TestBuilder (bug 12603 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12603>). So, if you could give your opinion about it before I go, it would be great :-) Regards, Yohann Le 21/07/2014 12:16, Yohann Dufour a écrit :
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 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12603>. You can see examples of the use of /TestBuilder/ on existing files : bug 12604 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12604>, bug 12605 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12605>, bug 12606 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12606>, bug 12607 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12607>.
Regards, Yohann
participants (1)
-
Yohann Dufour