[JBoss JIRA] (ARQ-2172) Remove duplication in TestRunnerAdaptor
by Bartosz Majsak (JIRA)
Bartosz Majsak created ARQ-2172:
-----------------------------------
Summary: Remove duplication in TestRunnerAdaptor
Key: ARQ-2172
URL: https://issues.jboss.org/browse/ARQ-2172
Project: Arquillian
Issue Type: Enhancement
Components: Base Implementation
Reporter: Bartosz Majsak
The code of the TestRunnerAdaptor management is same in both JUnit runner and JUnit class rule. The same can be also applied to the logic that invokes the test method.
I've moved the code to separated classes that are used by both implementations
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 11 months
[JBoss JIRA] (ARQ-2171) @ClassRules should not be executed in container
by Matous Jobanek (JIRA)
Matous Jobanek created ARQ-2171:
-----------------------------------
Summary: @ClassRules should not be executed in container
Key: ARQ-2171
URL: https://issues.jboss.org/browse/ARQ-2171
Project: Arquillian
Issue Type: Bug
Components: core
Affects Versions: 1.2.0.Final
Reporter: Matous Jobanek
For the same reason why {{@Before/After Class}} methods are not invoked in a container (the state between {{@Test}} methods is not kept), the {{@ClassRules}} should be prevented from running there as well.
Currently, they are executed on both sides - on client & in container
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 11 months
[JBoss JIRA] (ARQ-2170) RulesEnricher doubles each test enrichment
by kostd kostd (JIRA)
[ https://issues.jboss.org/browse/ARQ-2170?page=com.atlassian.jira.plugin.s... ]
kostd kostd edited comment on ARQ-2170 at 1/19/18 1:03 PM:
-----------------------------------------------------------
Created arquillian-junit-core.jar without testInstance toEnrich addition. Now only one enrichment, only one soap call, Rules works as usual.
was (Author: kostd):
Created arquillian-junit-core without testInstance toEnrich addition. Now only one enrichment, only one soap call, Rules works as usual.
> RulesEnricher doubles each test enrichment
> ------------------------------------------
>
> Key: ARQ-2170
> URL: https://issues.jboss.org/browse/ARQ-2170
> Project: Arquillian
> Issue Type: Bug
> Components: core
> Environment: arquillian-junit-core-1.1.11.Final (all versions affected)
> Reporter: kostd kostd
>
> RulesEnricher created in ARQ-1954
> 1. RulesEnricher is not implementor of TestEnricher, so it cannot be overrided through LoadableExtension.
> 2. RulesEnricher#enrichRulesAndTestInstance adds into collection toEnrich test instance:
> {code}
> toEnrich.add(event.getTestInstance());
> {code}
> https://github.com/arquillian/arquillian-core/blob/master/junit/core/src/...
> So, if MyTest have`nt field rules, will be only one MyTest enrichment. If MyTest contains one or more test rule, will be two MyTest enrichments.
> Each testEnrichment of MyTest do a soap call to server to prepare data for test. It is very important to me, one or two soap call will happen.
> How can I change this behaviour?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 11 months
[JBoss JIRA] (ARQ-2170) RulesEnricher doubles each test enrichment
by kostd kostd (JIRA)
[ https://issues.jboss.org/browse/ARQ-2170?page=com.atlassian.jira.plugin.s... ]
kostd kostd commented on ARQ-2170:
----------------------------------
Created arquillian-junit-core without testInstance toEnrich addition. Now only one enrichment, only one soap call, Rules works as usual.
> RulesEnricher doubles each test enrichment
> ------------------------------------------
>
> Key: ARQ-2170
> URL: https://issues.jboss.org/browse/ARQ-2170
> Project: Arquillian
> Issue Type: Bug
> Components: core
> Environment: arquillian-junit-core-1.1.11.Final (all versions affected)
> Reporter: kostd kostd
>
> RulesEnricher created in ARQ-1954
> 1. RulesEnricher is not implementor of TestEnricher, so it cannot be overrided through LoadableExtension.
> 2. RulesEnricher#enrichRulesAndTestInstance adds into collection toEnrich test instance:
> {code}
> toEnrich.add(event.getTestInstance());
> {code}
> https://github.com/arquillian/arquillian-core/blob/master/junit/core/src/...
> So, if MyTest have`nt field rules, will be only one MyTest enrichment. If MyTest contains one or more test rule, will be two MyTest enrichments.
> Each testEnrichment of MyTest do a soap call to server to prepare data for test. It is very important to me, one or two soap call will happen.
> How can I change this behaviour?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 11 months
[JBoss JIRA] (ARQ-2170) RulesEnricher doubles each test enrichment
by kostd kostd (JIRA)
kostd kostd created ARQ-2170:
--------------------------------
Summary: RulesEnricher doubles each test enrichment
Key: ARQ-2170
URL: https://issues.jboss.org/browse/ARQ-2170
Project: Arquillian
Issue Type: Bug
Components: core
Environment: arquillian-junit-core-1.1.11.Final (all versions affected)
Reporter: kostd kostd
RulesEnricher created in ARQ-1954
1. RulesEnricher is not implementor of TestEnricher, so it cannot be overrided through LoadableExtension.
2. RulesEnricher#enrichRulesAndTestInstance adds into collection toEnrich test instance:
{code}
toEnrich.add(event.getTestInstance());
{code}
https://github.com/arquillian/arquillian-core/blob/master/junit/core/src/...
So, if MyTest have`nt field rules, will be only one MyTest enrichment. If MyTest contains one or more test rule, will be two MyTest enrichments.
Each testEnrichment of MyTest do a soap call to server to prepare data for test. It is very important to me, one or two soap call will happen.
How can I change this behaviour?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 11 months