On 2016-01-29 18:40, 'Udo Spallek' via tryton-dev wrote:
> 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?

I think by using this way [1] of writing reports the problem is solved
because report are just there to layout the data.

[1] https://bugs.tryton.org/issue4996


-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20160129175226.GW20880%40tetsuo.

Attachment: pgpQzMwUGPLaH.pgp
Description: PGP signature

Reply via email to