Organizing unit tests into a test suite

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Organizing unit tests into a test suite

mitya
Hi,

In JUnit, it is possible for a user to manually define a test suite,
add individual tests to it and provide setUp/tearDown methods at a
suite level. Is it possible with qx.dev.unit.* and TestRunner? There is
a qx.dev.unit.TestSuite class, but there is virtually no documentation
on how to use it :(

In a few words, I need some initialization logic to be run (once)
before any test case. How do I achieve that?

Cheers,
Dimitri


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Organizing unit tests into a test suite

John Spackman
Hi Dimitri

You can define setUp and tearDown on a unit test class to do exactly that, there are examples in the qx.test.* classes.  If you need to share setUp/tearDown between different unit test classes, you can use inheritance and/or static methods to do that because they are normal classes.

Was that what you meant?

Cheers
John

On 29 April 2016 at 01:49:22, Dimitri ([hidden email]) wrote:

Hi,

In JUnit, it is possible for a user to manually define a test suite,
add individual tests to it and provide setUp/tearDown methods at a
suite level. Is it possible with qx.dev.unit.* and TestRunner? There is
a qx.dev.unit.TestSuite class, but there is virtually no documentation
on how to use it :(

In a few words, I need some initialization logic to be run (once)
before any test case. How do I achieve that?

Cheers,
Dimitri


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel