java - Filter/Ignore JUnit Testmethods listed in File during execution -


given:

  • a package testclasses. each test class has hundreds of test methods. of test classes use own runner.
  • a file strings of form: absolut.path.testclass.testmethod

should:

  • run test methods described in text file, including setup , tear down.
  • run them runner defined in testclass (not optional)

what has been tried

  • customsuiterunner + customrunner delegate
    • a toplevel-suite of suite has been created uses customsuiterunner
    • the customsuiterunner collects runners of included tests
    • the customsuiterunner wrapes each runner in customrunner
    • the customrunner delegates calls "isignored()" encapsulated runner.
    • problem: execute single methods, customrunner expected encapsulated runners parentrunner. runners mockitos runner plain runners. how access methods don't know.

question how can achieve execution of group of test methods several test classes? if runners not best option, interested in alternatives, also.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -