[JBoss JIRA] (ARQ-705) @ShouldThrowException() - if expected deployment exception is not raised it will stop to invoke other deployments and any tests aren't processed at all
by Pavel Janousek (Created) (JIRA)
@ShouldThrowException() - if expected deployment exception is not raised it will stop to invoke other deployments and any tests aren't processed at all
-------------------------------------------------------------------------------------------------------------------------------------------------------
Key: ARQ-705
URL: https://issues.jboss.org/browse/ARQ-705
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Pavel Janousek
Let imagine class like:{code}
@RunWith(Arquillian.class)
public class ImagineTestCase {
@Deployment(name="dep1")
@ShouldThrowException(Exception.class)
public static Archive<?> dep1() { ... }
@Deployment(name="dep2")
public static Archive<?> dep2() { ... }
@Test
@OperateOnDeployment("dep1")
public void Test1() throws Exception { ... }
@Test
@OperateOnDeployment("dep2")
public void Test2() throws Exception { ... }
}
{code}
Present behavior - if exception isn't raised during deployment dep1 (and this is also the first deployment ARQ want to run), everything other is stopped, although deployment dep2 could work ok and Test2() depends only on dep2.
It doesn't make sense for me, I prefer to continue run some tests if anyone is available and isn't blocked by failed deployment -> try to run dep2(), deploy produced artifact and invoke Test2, even dep1() failed (not raised Exception in this case).
Do you agree with me?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (ARQ-734) Filter TestClass based on @OperatesOnDeployment during deploy
by Aslak Knutsen (JIRA)
Aslak Knutsen created ARQ-734:
---------------------------------
Summary: Filter TestClass based on @OperatesOnDeployment during deploy
Key: ARQ-734
URL: https://issues.jboss.org/browse/ARQ-734
Project: Arquillian
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Base Implementation
Affects Versions: 1.0.0.CR7
Reporter: Aslak Knutsen
When using Multiple incontainer Deployments with different Content in combination with @OperatesOnDeployment @Tests might fail due to CNFE.
CNFE is thrown by the Container because the TestClass is refers to Classes from the 'other' deployment and can't be loaded, even tho they are not executed.
Arquillian should Filter and Rewrite the TestClass before it is deployed so only the @Test methods that are targeted to a specific Deployment are visible runtime.
Note:
javaassist is a very common lib and version conflicts are easy to occur. Shard javassist under a org.jboss.arq namespace?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (ARQ-350) Map client events 1 to 1 with container events
by Aslak Knutsen (JIRA)
Map client events 1 to 1 with container events
----------------------------------------------
Key: ARQ-350
URL: https://issues.jboss.org/browse/ARQ-350
Project: Arquillian
Issue Type: Feature Request
Components: Base Implementation, Test Protocol SPIs and Implementation
Reporter: Aslak Knutsen
We should redo how the test execution lifecycles happen. In the current impl the flow is:
Client(BeforSuite, BeforeClass, Before) -> Container(BeforSuite, BeforeClass, Before, Test, After, AfterClass, AfterSuite) -> Client(After, AfterClass, AfterSuite)
We should map these 1 to 1 with the incontainer execution and keep the test instance alive between the calls.
Client(BeforeClass) -> Container(BeforeClass)
Client(Before) -> Container(Before)
..
This way the execution is closer to how it normally would be, and extensions can interact with the Container/Environment or Client in the appropriate lifecycles more naturally.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (ARQ-506) Support more complex property types in container configuration
by Gerhard Poul (JIRA)
Support more complex property types in container configuration
--------------------------------------------------------------
Key: ARQ-506
URL: https://issues.jboss.org/browse/ARQ-506
Project: Arquillian
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Configuration
Reporter: Gerhard Poul
Priority: Optional
It might sometimes be helpful to support arbitrary property lists within an arquillian configuration, such as when we want to make it possible to pass properties to the underlying container implementations, but that have no effect on the behavior of the arquillian-container-implementation itself.
This is not to replace, but to augment the current configuration capability, such that we can provide something like the following in an arquillian.xml:
<container qualifier="someQualifier" default="true">
<configuration>
<propertyList name="somePropertyName">
<propertyEntry name="somePropertyEntryName" type="java.lang.String" value="someValue" />
<propertyEntry name="somePropertyEntryName2" type="java.lang.Integer" value="1234" />
...
</propertyList>
<property name="someOtherProperty">someValue</property>
</configuration>
</container>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months