Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow programatic generation of Suite classes #41

Closed
Yishai opened this issue Oct 29, 2009 · 2 comments
Closed

Allow programatic generation of Suite classes #41

Yishai opened this issue Oct 29, 2009 · 2 comments
Labels

Comments

@Yishai
Copy link

Yishai commented Oct 29, 2009

Add an annotation to the Suite class called SuiteMethod that would annotate
a method that returns a Class[] array. The Suite would then be built from
the two annotations, Suite.SuiteClasses plus any methods on the class (and
enforce that they be public, static, take no parameters and return a
Class[] array) that are annotated with Suite.SuiteMethod and build the
Suite as a combination of all of the Arrays returned. Multiple methods
return the same class, my preference would be to only run the class once.

An alternative would be to create a separate runner for a class has the
@SuiteMethod.

@dsaff
Copy link
Member

dsaff commented Mar 11, 2013

Thanks for the idea. This is easy enough for user code to do without changes to JUnit, so I think we should de-prioritize.

@dsaff dsaff closed this as completed Mar 11, 2013
@conneronx
Copy link

Way to kill something that would be super useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants