I am new to AngularJS for JS in general. Now I want to use JSTestDriver and the behavior-oriented Jasmin development platform. As I understand it, AngularJS works with Jasmine and a test driver. I am working with Ideal Intellij 11.1.3. I added a plug-in for JsTestdriver to it and performed some test as described here http://code.google.com/p/js-test-driver/wiki/IntelliJPlugin . Now here is the problem. When I write some Jasmine tests like this
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
});
the first time indea intellij asked me to download a jasmine adapter, and I did, but when I ran the test, I got this message: I could not connect a test reporter to check the intellij built-in shell. I searched google for solutions, some guy advised how to run angular tutorials: here: https://groups.google.com/forum/?fromgroups=#!topic/angular/LdjNsZD69Uk .
It uses the configuration files that come with angular js. and Node.js should I install them? is there no way to automatically do this from a perfect intellij?
What file structure should I have?
Any help, link or suggestion would be great.
I installed the jsTestDriver.conf file and its paths, but now I get this problem:
Testing started at 13:31 ...
Cannot read [
/tmp/.m2/repository/org/testng/testng/6.7/testng-6.7.jar!/testng-reports.js
/home/clouway/.m2/repository/org/testng/testng/6.7/testng-6.7.jar!/testng-reports.js
] derived from .m2/repository/org/testng/testng/6.7/testng-6.7.jar!/testng-reports.js
Cannot read [
/tmp/.m2/repository/org/testng/testng/6.7/testng-6.7.jar!/jquery-1.7.1.min.js
/home/clouway/.m2/repository/org/testng/testng/6.7/testng-6.7.jar!/jquery-1.7.1.min.js
] derived from .m2/repository/org/testng/testng/6.7/testng-6.7.jar!/jquery-1.7.1.min.js
at com.google.jstestdriver.PathResolver.resolve(PathResolver.java:98)
at com.google.jstestdriver.config.ParsedConfiguration.resolvePaths(ParsedConfiguration.java:99)
at com.google.jstestdriver.config.Initializer.initialize(Initializer.java:86)
at com.google.jstestdriver.embedded.JsTestDriverImpl.createRunnerInjector(JsTestDriverImpl.java:368)
at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfigurationWithFlags(JsTestDriverImpl.java:342)
at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfiguration(JsTestDriverImpl.java:233)
at com.google.jstestdriver.idea.TestRunner.runTests(TestRunner.java:195)
at com.google.jstestdriver.idea.TestRunner.executeTestCase(TestRunner.java:131)
at com.google.jstestdriver.idea.TestRunner.unsafeExecuteConfig(TestRunner.java:122)
at com.google.jstestdriver.idea.TestRunner.executeConfig(TestRunner.java:97)
at com.google.jstestdriver.idea.TestRunner.executeAll(TestRunner.java:88)
at com.google.jstestdriver.idea.TestRunner.main(TestRunner.java:330)
Empty test suite.
I use maven as a build tool.