Daniel John Debrunner wrote:
David W. Van Couvering wrote:



Kristian Waagan wrote:


4) Should it be possible to run single JUnit test/suite from the
command line by simply invoking the main method?

Personally, I think this should be possible. This require us to remove
the current use of main for running a test in the old test harness,
which I believe is doable with a few changes (in the old harness).


I think this is essential for debugging and incremental testing.  +1 on
this idea.


I think it's essential that a single test can be run. I don't think it's
essential that it is from test's main method. The harness produces the
useful functionality of setting up the correct environment for the test,
not sure if that could be duplicated in evey main method for every test.

Good point Dan.

Citing Dan: "...harness produces the useful functionality of setting up the correct environment for the test,...".

Can somebody please explain to me what is actually done by the harness?

I did have a quick look at the harness code, but I would need to study it a bit more to understand what it actually does. Stating what the harness does when it comes to setting up the environment for tests would be good for the general understanding of the test execution process.



--
Kristian



Dan.


Reply via email to