Merge: Refactorize nitunit
authorJean Privat <jean@pryen.org>
Sun, 22 May 2016 12:56:17 +0000 (08:56 -0400)
committerJean Privat <jean@pryen.org>
Sun, 22 May 2016 12:56:17 +0000 (08:56 -0400)
commitb88e706be3a72dd94ba32a9caee6590a86fb07c6
tree5e1645fd303ce92b3ba7c8f97cb6d460ba20eff5
parent134ee7b563a809996f3757f15b6b4a14d3a73373
parent60a694b38329d7749411267b1b73501af3ff0db4
Merge: Refactorize nitunit

Future improvement of nitunit require a saner codebase.
This PR does not bring a lot of features but propose instead some code improvements.

Summary:

* a new class UnitTest to factorize DocUnit and TestCase
* DocUnit are created, with its metadata, while discovered
* DocUnit do not enclose a XML node to fill but will generate one with to_xml.
* Easter egg: precise locations are included in the DocUnits. Each line of *collected* code can be located back to the original source code. This feature is not really used yet, except to locate the docunit itself.

The last commits are divided in order to make the reviewing more easy. I tought that is was better than a big stashed change.

Future PR will target usability since unit-tests are now reified in a common way on both sides (docunits and testsuites).

Pull-Request: #2114
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>