Skip to content

Instantly share code, notes, and snippets.

@papousek
Created June 27, 2012 07:25
Show Gist options
  • Save papousek/3002219 to your computer and use it in GitHub Desktop.
Save papousek/3002219 to your computer and use it in GitHub Desktop.
More Test Classes with One Deployment
@RunWith(ArquilliianSuite.class)
@Sub(groups = { "group1" }, classes = { ExampleTest1.class, ExampleTest2.class })
pulic class Deployer {
...
}
@RunWith(Arquilliian.class)
@Sub(groups = {"group1"})
public class ExampleTest1 {
...
}
@RunWith(Arquilliian.class)
public class ExampleTest2 {
...
}
@aslakknutsen
Copy link

The SPI will be similar to:

public interface SuiteMemberLocator {

  /*
   * Return a Collection of all Members that belong to the given Suite
   */
  Collection<Class<?>> locate(Class<?> suiteClass);
}

What the default behavior will be is currently unknown and up for discussion, but some form of Suite annotation matching group/member names in sub packages of Suite Class or similar sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment