[JBoss JIRA] (ARQ-638) Option to "clean" the container before running tests
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-638?page=com.atlassian.jira.plugin.sy... ]
Bartosz Majsak commented on ARQ-638:
------------------------------------
I see there are some bits in WildFly about this functionality, but mainly around embedded container. Shall we keep the issue open? /cc [~aslak]
> Option to "clean" the container before running tests
> ----------------------------------------------------
>
> Key: ARQ-638
> URL: https://issues.jboss.org/browse/ARQ-638
> Project: Arquillian
> Issue Type: Feature Request
> Components: Configuration, JBoss AS Containers
> Affects Versions: 1.0.0.CR5
> Reporter: Ondrej Zizka
> Assignee: Andrew Rubinger
> Priority: Optional
>
> It would be nice to have an option to have the container cleaned before launching it.
> For AS7 as an example, that would mean deleting
> * standalone/log
> * standalone/data
> * standalone/tmp
> * standalone/deployments (?)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-414) Upgrade dependencies of examples (Arqullian 1.0.0.Alpha5, among others)
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-414?page=com.atlassian.jira.plugin.sy... ]
Bartosz Majsak commented on ARQ-414:
------------------------------------
I'm just wondering what shall we do with the showcase project. It seems rather outdated and most of the extensions have functional tests which are also quite good source of information. Any thoughts [~aslak] [~mjobanek] [~asotobu]
> Upgrade dependencies of examples (Arqullian 1.0.0.Alpha5, among others)
> -----------------------------------------------------------------------
>
> Key: ARQ-414
> URL: https://issues.jboss.org/browse/ARQ-414
> Project: Arquillian
> Issue Type: Component Upgrade
> Components: Examples/Showcase
> Affects Versions: 1.0.0.Alpha5
> Reporter: Hendy Irawan
>
> Upgrade dependencies, including but not limited to:
> - Arquillian 1.0.0.Alpha5
> - JUnit 4.8.2
> - cdi-api 1.0-SP4
> - glassfish 3.1-b41
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-1282) TestNG @DataProvider is fully invoked for each record
by Chris Dollar (JIRA)
[ https://issues.jboss.org/browse/ARQ-1282?page=com.atlassian.jira.plugin.s... ]
Chris Dollar commented on ARQ-1282:
-----------------------------------
Thanks for looking into this, Bartosz. Were you able to make any progress?
Are there any other workarounds for using TestNG data providers with arquillian?
> TestNG @DataProvider is fully invoked for each record
> -----------------------------------------------------
>
> Key: ARQ-1282
> URL: https://issues.jboss.org/browse/ARQ-1282
> Project: Arquillian
> Issue Type: Bug
> Components: JBoss AS Containers
> Affects Versions: 1.0.3.Final
> Reporter: Karel Cemus
> Assignee: Bartosz Majsak
> Attachments: ArquillianDataProvider.java, FlightServiceTest.java
>
>
> h2. Expected behavior
> TestNG defines @DataProvider annotation to allow single method to perform multiple test cases. Provider method annotated with @DataProvider returns an array of arrays, each containing one test case. These parameters are given to the target method as input parameters. By the definition, the total count of performed test by single method is equal to number of test cases in related data provider.
> h2. Actual behavior
> Using TestNG under Arquillian framework makes this functionality buggy. Although the client (maven, IDE, etc.) thinks, that the total number of invoked test is correct, it is not. When we take a look into server's log, we can see that for each single test case it invoked full set of all test cases. It means, that in the end the amount of performed tests is equal to expected count squared. Such behaviour is not only slow but also in some cases it doesn't work and it makes tests to fail.
> h2. Example
> {code:java}
> @DataProvider
> public Object[][] sumProvider() {
> return new Object[][]{
> new Object[]{ 0, 0, 0 },
> new Object[]{ 1, 1, 2 },
> new Object[]{ 1, 5, 6 },
> new Object[]{ 5, 1, 6 }
> };
> }
> {code}
> h3. Expected output in server log
> {quote}
> Execution of sum: 0 + 0 = 0
> Execution of sum: 1 + 1 = 2
> Execution of sum: 1 + 5 = 6
> Execution of sum: 5 + 1 = 6
> {quote}
> h3. Actual output
> {quote}
> Execution of sum: 0 + 0 = 0
> Execution of sum: 1 + 1 = 2
> Execution of sum: 1 + 5 = 6
> Execution of sum: 5 + 1 = 6
> Execution of sum: 0 + 0 = 0
> Execution of sum: 1 + 1 = 2
> Execution of sum: 1 + 5 = 6
> Execution of sum: 5 + 1 = 6
> Execution of sum: 0 + 0 = 0
> Execution of sum: 1 + 1 = 2
> Execution of sum: 1 + 5 = 6
> Execution of sum: 5 + 1 = 6
> Execution of sum: 0 + 0 = 0
> Execution of sum: 1 + 1 = 2
> Execution of sum: 1 + 5 = 6
> Execution of sum: 5 + 1 = 6
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months