Re: Side effects between test cases

"Tobias Werth [email protected] [junit]" <[email protected]> Mon, 28 Jul 2014 09:09:45 +0200
Newsgroups gmane.comp.java.junit.user
Message-ID <[email protected]>
Hi Stefan,


*Stefan Penndorf [email protected] [junit] <[email protected]> [14/07/25]:
> I think it's really hard to address those things. I agree with Esko that those
> concerns are rare in "every-day" projects.
> [...]
> Maybe you could explain further why timing is an issue for you. And maybe you
> can also describe the code and project that causes the issue.


Yes, both of you are probably right and I overestimated the generality
of my problem.


What we are doing is a bit different: we evaluate student exercises.
E.g. students have to implement an interface, and we test their code
with JUnit tests for grading purposes. We also restrict timings since
the students may code infinite loops or just choose the wrong
algorithmic complexities.


What might happen currently is: a student might fail on more cases as he
should fail on. However, we have probably to work around that and
a) either use that deprecated Thread.stop() method (since we don't test
multithreaded code)
b) start each test case in a separate run


Cheers,
Tobi




------------------------------------
Posted by: Tobias Werth <[email protected]>
------------------------------------