What steps will reproduce the problem?
1. I have a javascript(myBlah.js) file which uses jquery functions
2. I have a corresponding tests file myBlahTest.js which has four unit tests
3. This is what I have in my pom.xml
<plugin>
<groupId>net.kennychua</groupId>
<artifactId>phantomjs-qunit-runner</artifactId>
<version>1.0.15</version>
<executions>
<execution>
<goals>
<goal>test</goal>
<goal>generate-html</goal>
</goals>
</execution>
</executions>
<configuration>
<jsSourceDirectory>${project.build.directory}/../src/main/webapp/scripts</jsSourceDirectory>
<jsTestDirectory>${project.build.directory}/../src/test/webapp/scripts</jsTestDirectory>
<includeLibsInDir>
<directory>${project.build.directory}/../src/main/webapp/scripts</directory>
<includes>
<include>jquery.js</include>
</includes>
</includeLibsInDir>
<phantomJsExec>${project.build.directory}/../src/test/phantomjs-1.8.0-linux-x86_64/bin/phantomjs</phantomJsExec>
</configuration>
</plugin>
What is the expected output? What do you see instead?
The test pass if I run it manually through the html file . But I see this in
the generated XML file
<testcase time="0" name="global failure">
<failure type="1" message="1">PhantomJS QUnit failure on test :
'global failure', failed assertions: 'ReferenceError: Can't find
variable: $,
/home/blah/myapp/src/main/webapp/scripts/myBlah.js:1'
</failure>
</testcase>
What version of the product are you using? On what operating system?
I am using version 1.0.15. OS is Ubuntu 10.04 LTS
Please provide any additional information below.
Original issue reported on code.google.com by m.har...@gmail.com on 3 Jan 2013 at 5:08
Original issue reported on code.google.com by
m.har...@gmail.com
on 3 Jan 2013 at 5:08