How can I run the same Junit test on several different projects? These projects are known to contain the same classes with the same features etc.
I want to avoid copying the test class to every project.
basically I want to run the same tests on all their projects (they got the tests from the start) ... so student1 has a project with class A, student 2 has his/her project folder with class A and I want to run my "ATester" on both their projects automatically. The cheapest way of course seems to simply copy my test class in all their projects and just run them through some java code calling a runner (or in a shell script) ... but I was simply wondering if there isn't a beautiful solution to this (been trying to do this in Java with dynamic class loading, but it always seems to come down to the fact that even if I load class A from a different path, the runner keeps using the local version - I need a local version in my 'master', because otherwise my test class won't compile).
It seems to me that my problem boils down to ... what if the class to run with JUnit runclasses needs a class in a different place (i.e. path) ... how can I specify that (from code, not from a shell)