[jboss-jira] [JBoss JIRA] (WFLY-1031) Arquillian - create JUnit's @Category appender
Ondrej Zizka (JIRA)
issues at jboss.org
Wed Feb 10 04:34:02 EST 2016
[ https://issues.jboss.org/browse/WFLY-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Zizka reassigned WFLY-1031:
----------------------------------
Assignee: (was: Ondrej Zizka)
> Arquillian - create JUnit's @Category appender
> ----------------------------------------------
>
> Key: WFLY-1031
> URL: https://issues.jboss.org/browse/WFLY-1031
> Project: WildFly
> Issue Type: Enhancement
> Components: Test Suite
> Reporter: Ondrej Zizka
>
> For tests which use the JUnit's @Category, this class needs to be added to the deployment.
> It would be convenient to have this added automatically.
> Aslak's note:
> {quote}
> You can do this today if you want to, same as the weld core tests do.
> Create a little AuxiliaryArchiveAppender that packages the categories. As long as that is registered in a LoadableExtension and register as SPI and on Classpath when you run, the produced Archive will be bundled with the deployment.
> AuxiliaryArchiveAppender example:
> https://github.com/weld/core/blob/master/tests-arquillian/src/test/java/org/jboss/weld/tests/CategoryArchiveAppender.java
> LoadableExtension example: (only the service AuxiliaryArchiveAppender is needed in this case)
> https://github.com/weld/core/blob/master/tests-arquillian/src/test/java/org/jboss/weld/tests/WeldCategoryExtension.java
> SPI registration:
> https://github.com/weld/core/blob/master/tests-arquillian/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list