[JBoss JIRA] (ARQ-567) Supporting Test Suites (@ArquillianSuite)
by Daniel G (JIRA)
[ https://issues.jboss.org/browse/ARQ-567?page=com.atlassian.jira.plugin.sy... ]
Daniel G commented on ARQ-567:
------------------------------
Is the work on this task continued?
For us this is a blocker to even think about Arquillian. We have huge EARs where deployments take at least a minute. With hundreds of test classes, this is just impossible to handle with a per test class deployment.
> Supporting Test Suites (@ArquillianSuite)
> -----------------------------------------
>
> Key: ARQ-567
> URL: https://issues.jboss.org/browse/ARQ-567
> Project: Arquillian
> Issue Type: Feature Request
> Reporter: Mousavi Jahan Abadi S. M.
> Assignee: Aslak Knutsen
> Fix For: 1.2.0.Alpha1
>
>
> Currently, it is supported that JUnit test cases being run by Arquillian. This feature request is request for supporting test suites too to be run by Arquillian too. Idea is like:
> @RunWith(ArquillianSuite.class)
> @Suite.SuiteClasses( { TestCase1.class, TestCase2.class, .... } )
> public class AllTests{
> @Deployment
> public static JavaArchive createTestArchive(){
> return ShrinkWrap.create(JavaArchive.class,"test.jar");
> }
> }
> The advantages of above approach for users of Arquillian framework are:
> - Test cases don't needed to be modified to have: "@RunWith(Arquillian.class)" annotation. In other words, test cases will be pure JUnit code, and no Arquillian code (results in less coding for end users).
> - It is not necessary to include the static "@Deployment" methods in all test cases any more, and only Test Suite need to define the archieving/deployment related setting/definitions.
> The advantage of above approach for framework itself is:
> - From performance point-of-view, it becomes possible for Arquillian to deploy all test cases in the Test Suite into J2EE container in one action (one deploy/undeploy for one test suite, instead of mulitple deploy/undeploy for each test case).
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 5 months
[JBoss JIRA] (ARQ-2109) EJBInjectionEnricher makes too strong assumptions about JNDI names in the "anonymous" case
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-2109?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak updated ARQ-2109:
--------------------------------
Affects Version/s: 1.1.13.Final
> EJBInjectionEnricher makes too strong assumptions about JNDI names in the "anonymous" case
> ------------------------------------------------------------------------------------------
>
> Key: ARQ-2109
> URL: https://issues.jboss.org/browse/ARQ-2109
> Project: Arquillian
> Issue Type: Bug
> Components: Runtime Enricher SPI
> Affects Versions: 1.1.13.Final
> Reporter: Ladislav Thon
>
> The {{EJBInjectionEnricher}} supports injecting the test instance fields annotated with {{javax.ejb.EJB}}. However, looking at the {{EJBInjectionEnricher.getJndiNamesForAnonymousEJB}} method, it makes too strong assumptions about the JNDI name. Specifically, it assumes the {{test.ear}} and {{test}} names. That doesn't necessarily have to be correct (e.g. WildFly Swarm Arquillian adapter doesn't use these names). There's an easy way to improve this for some situations: also consider the {{java:module}} portable namespace. It can't fix all situations, but it does fix some of them. (For Swarm, it's completely enough, since Swarm doesn't support EARs.)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 5 months
[JBoss JIRA] (ARQ-2109) EJBInjectionEnricher makes too strong assumptions about JNDI names in the "anonymous" case
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-2109?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak updated ARQ-2109:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> EJBInjectionEnricher makes too strong assumptions about JNDI names in the "anonymous" case
> ------------------------------------------------------------------------------------------
>
> Key: ARQ-2109
> URL: https://issues.jboss.org/browse/ARQ-2109
> Project: Arquillian
> Issue Type: Bug
> Components: Runtime Enricher SPI
> Affects Versions: 1.1.13.Final
> Reporter: Ladislav Thon
>
> The {{EJBInjectionEnricher}} supports injecting the test instance fields annotated with {{javax.ejb.EJB}}. However, looking at the {{EJBInjectionEnricher.getJndiNamesForAnonymousEJB}} method, it makes too strong assumptions about the JNDI name. Specifically, it assumes the {{test.ear}} and {{test}} names. That doesn't necessarily have to be correct (e.g. WildFly Swarm Arquillian adapter doesn't use these names). There's an easy way to improve this for some situations: also consider the {{java:module}} portable namespace. It can't fix all situations, but it does fix some of them. (For Swarm, it's completely enough, since Swarm doesn't support EARs.)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 5 months