[
https://issues.jboss.org/browse/ARQ-1503?page=com.atlassian.jira.plugin.s...
]
Tolis Emmanouilidis commented on ARQ-1503:
------------------------------------------
[~kpiwko]The QUnitResource value should be the path of a folder which contains all the
resources needed for the QUnit Test Suites execution.
In the mentioned example: src/test/qunit does not contain all the required resources.
Probably some of your QUnit Suites are using resources (e.g jQuery, AeroGear JS libs)
which are outside the src/test/qunit folder. That's why changing the QUnitResource
value to src, fixed the issue.
I would agree on changing the annotation names. However, I think it is well documented in
the corresponding blog:
To create an Arquillian QUnit test class, annotate the test class
with the @RunWith(QUnitRunner.class) and @QUnitResources annotations. The @QUnitResources
annotation’s value should be the path of the folder which contains all the QUnit resources
and dependencies which are required for your QUnit tests execution. For each QUnit Test
Suite that you would like to execute, create a method and annotate it with the @QUnitTest
annotation. The annotation’s value should be the QUnit Test Suite path, relative to the
@QUnitResources path. On the below example, the src folder contains all the resources
required from our QUnit tests in order to be executed and our QUnit Test Suite
(qunit-tests.html) is included inside the src/test/resources/qunit-assets folder.
@QUnitResource and @QUnitTest usage is bit confusing
----------------------------------------------------
Key: ARQ-1503
URL:
https://issues.jboss.org/browse/ARQ-1503
Project: Arquillian
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: Extension - QUnit
Affects Versions: qunit_1.0.0.Alpha1
Reporter: Karel Piwko
It is difficult to figure out that:
@QUnitResource("src/test/qunit)
@QUnitTest("index.html")
and
@QUnitResource("src)
@QUnitTest("test/qunit/index.html")
will yield completely different results. It needs either a rework or definitely more
documetation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira