Hi,
Tryton has two general testing targets unittest (direct Tryton API
access) and scenario tests (based on proteus).
While unittests are very powerfull to intensive test small parts of
code, are scenario tests excellent for testing large functional
related parts.
Running tests with run-tests.py follows the rule first run all unittests
of a module, second run the doctests[1].
Is there a way to run a specific unittest after a specific scenario test
using both the same database? (I know about setUp and tearDown…)
I am asking, because I need to (unit-) test a reports ``objects`` and
``data`` delivered to the ``parse`` method. I can never introspect
methods in a proteus scenario test. On the other hand using a
unittest to create functional data like company, chart of account,
fiscal year, invoices, accounting moves is a lot of monkey work.
So it would be handy to have the scenario test roll out all the
functional data and after this a unittest could use the database to
introspect methods and check the calculations for the report.
Any ideas appreciated?
Regards Udo
[1]
http://hg.tryton.org/trytond/file/05645ed58599/trytond/tests/test_tryton.py#l345
--
_____________________________
virtual things
Preisler & Spallek GbR
München - Aachen
Windeckstr. 77
81375 München
Tel:
+49 (89) 710 481 55
Fax:
+49 (89) 710 481 56
in...@virtual-things.biz
http://www.virtual-things.biz