Message from discussion
How to run angularJS tests in intellij idea 11.1.3?
Received: by 10.182.180.68 with SMTP id dm4mr731550obc.46.1347380334367;
Tue, 11 Sep 2012 09:18:54 -0700 (PDT)
X-BeenThere: jasmine-js@googlegroups.com
Received: by 10.231.62.200 with SMTP id y8ls2155430ibh.5.gmail; Tue, 11 Sep
2012 09:18:53 -0700 (PDT)
Received: by 10.50.185.228 with SMTP id ff4mr6339158igc.0.1347380333304;
Tue, 11 Sep 2012 09:18:53 -0700 (PDT)
Received: by 10.50.57.75 with SMTP id g11msigq;
Tue, 11 Sep 2012 03:40:39 -0700 (PDT)
Received: by 10.182.121.66 with SMTP id li2mr940043obb.16.1347360039449;
Tue, 11 Sep 2012 03:40:39 -0700 (PDT)
Date: Tue, 11 Sep 2012 03:40:38 -0700 (PDT)
From: Adio Gemon <fireball...@gmail.com>
To: jasmine-js@googlegroups.com
Message-Id: <3138be3f-6034-4200-9fa4-7d01c1bdbcd2@googlegroups.com>
Subject: How to run angularJS tests in intellij idea 11.1.3?
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_2039_12201145.1347360038835"
------=_Part_2039_12201145.1347360038835
Content-Type: multipart/alternative;
boundary="----=_Part_2040_13524864.1347360038835"
------=_Part_2040_13524864.1347360038835
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
I am new to AngularJS to JS in general. Now I want to use JSTestDriver and
behavior driven development framework Jasmin . As I understood AngularJS
works with Jasmine and test driver. I am working with Ideal Intellij
11.1.3. I added the plug in for JsTestdriver to It and run 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 one
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
});
, for the first time indea intellij asked me to download the jasmine
adapter and I did, but when I run the test I got this message : unable to
attach test reporter to test framework intellij. I searched google for
solutions, some guy posted how to run the angular tutorials: here :
https://groups.google.com/forum/?fromgroups=#!topic/angular/LdjNsZD69Uk.
he uses a configuration files that comes with Angular js. and Node.js
should I install them too ? isn't there any way to automatically do this
from ideal intellij ?
What files structure should I have ?
Any help, link or suggestion will be great.
I fixed my jsTestDriver.conf file and it's paths, but now I get this
problem :
Testing started at 1:31 PM ...
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.
------=_Part_2040_13524864.1347360038835
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<span class=3D"Apple-style-span" style=3D"color: rgb(0, 0, 0); font-family:=
Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line=
-height: 18px; "><p style=3D"border-style: initial; border-color: initial; =
font-size: 14px; background-image: initial; background-attachment: initial;=
background-origin: initial; background-clip: initial; background-color: tr=
ansparent; clear: both; word-wrap: break-word; ">I am new to AngularJS to J=
S in general. Now I want to use JSTestDriver and behavior driven developmen=
t framework Jasmin . As I understood AngularJS works with Jasmine and test =
driver. I am working with Ideal Intellij 11.1.3. I added the plug in for Js=
Testdriver to It and run some test as described here <a href=3D"http:/=
/code.google.com/p/js-test-driver/wiki/IntelliJPlugin" rel=3D"nofollow" sty=
le=3D"border-style: initial; border-color: initial; font-size: 14px; backgr=
ound-image: initial; background-attachment: initial; background-origin: ini=
tial; background-clip: initial; background-color: transparent; color: rgb(0=
, 119, 204); cursor: pointer; ">http://code.google.com/p/js-test-driver/wik=
i/IntelliJPlugin</a>. Now here is the problem. When I write some Jasmine te=
sts like this one</p><pre style=3D"margin-bottom: 10px; padding-top: 5px; p=
adding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-style: in=
itial; border-color: initial; font-size: 14px; background-image: initial; b=
ackground-attachment: initial; background-origin: initial; background-clip:=
initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menl=
o, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstr=
eam Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; ove=
rflow-y: auto; width: auto; max-height: 600px; "><code style=3D"border-styl=
e: initial; border-color: initial; font-size: 14px; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas,=
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'B=
itstream Vera Sans Mono', 'Courier New', monospace, serif; ">describe("A su=
ite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
});
</code></pre><p style=3D"border-style: initial; border-color: initial; font=
-size: 14px; background-image: initial; background-attachment: initial; bac=
kground-origin: initial; background-clip: initial; background-color: transp=
arent; clear: both; word-wrap: break-word; ">, for the first time indea int=
ellij asked me to download the jasmine adapter and I did, but when I run th=
e test I got this message : unable to attach test reporter to test framewor=
k intellij. I searched google for solutions, some guy posted how to run the=
angular tutorials: here : <a href=3D"https://groups.google.com/forum/=
?fromgroups=3D#!topic/angular/LdjNsZD69Uk" rel=3D"nofollow" style=3D"border=
-style: initial; border-color: initial; font-size: 14px; background-image: =
initial; background-attachment: initial; background-origin: initial; backgr=
ound-clip: initial; background-color: transparent; color: rgb(0, 119, 204);=
cursor: pointer; ">https://groups.google.com/forum/?fromgroups=3D#!topic/a=
ngular/LdjNsZD69Uk</a>.</p><p style=3D"border-style: initial; border-color:=
initial; font-size: 14px; background-image: initial; background-attachment=
: initial; background-origin: initial; background-clip: initial; background=
-color: transparent; clear: both; word-wrap: break-word; ">he uses a config=
uration files that comes with Angular js. and Node.js should I install them=
too ? isn't there any way to automatically do this from ideal intellij ?</=
p><p style=3D"border-style: initial; border-color: initial; font-size: 14px=
; background-image: initial; background-attachment: initial; background-ori=
gin: initial; background-clip: initial; background-color: transparent; clea=
r: both; word-wrap: break-word; ">What files structure should I have ?</p><=
p style=3D"border-style: initial; border-color: initial; font-size: 14px; b=
ackground-image: initial; background-attachment: initial; background-origin=
: initial; background-clip: initial; background-color: transparent; clear: =
both; word-wrap: break-word; ">Any help, link or suggestion will be great.<=
/p><p style=3D"border-style: initial; border-color: initial; font-size: 14p=
x; background-image: initial; background-attachment: initial; background-or=
igin: initial; background-clip: initial; background-color: transparent; cle=
ar: both; word-wrap: break-word; ">I fixed my jsTestDriver.conf file and it=
's paths, but now I get this problem :</p><p style=3D"border-style: initial=
; border-color: initial; font-size: 14px; background-image: initial; backgr=
ound-attachment: initial; background-origin: initial; background-clip: init=
ial; background-color: transparent; clear: both; word-wrap: break-word; ">T=
esting started at 1:31 PM ...</p><pre style=3D"margin-bottom: 10px; padding=
-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; bord=
er-style: initial; border-color: initial; font-size: 14px; background-image=
: initial; background-attachment: initial; background-origin: initial; back=
ground-clip: initial; background-color: rgb(238, 238, 238); font-family: Co=
nsolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mo=
no', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-=
x: auto; overflow-y: auto; width: auto; max-height: 600px; "><code style=3D=
"border-style: initial; border-color: initial; font-size: 14px; background-=
image: initial; background-attachment: initial; background-origin: initial;=
background-clip: initial; background-color: rgb(238, 238, 238); font-famil=
y: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sa=
ns Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">Ca=
nnot 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!/test=
ng-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!/jque=
ry-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(Pars=
edConfiguration.java:99)
at com.google.jstestdriver.config.Initializer.initialize(Initializer.ja=
va:86)
at com.google.jstestdriver.embedded.JsTestDriverImpl.createRunnerInject=
or(JsTestDriverImpl.java:368)
at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfigurationWi=
thFlags(JsTestDriverImpl.java:342)
at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfiguration(J=
sTestDriverImpl.java:233)
at com.google.jstestdriver.idea.TestRunner.runTests(TestRunner.java:195=
)
at com.google.jstestdriver.idea.TestRunner.executeTestCase(TestRunner.j=
ava:131)
at com.google.jstestdriver.idea.TestRunner.unsafeExecuteConfig(TestRunn=
er.java:122)
at com.google.jstestdriver.idea.TestRunner.executeConfig(TestRunner.jav=
a:97)
at com.google.jstestdriver.idea.TestRunner.executeAll(TestRunner.java:8=
8)
at com.google.jstestdriver.idea.TestRunner.main(TestRunner.java:330)
Empty test suite.</code></pre></span>
------=_Part_2040_13524864.1347360038835--
------=_Part_2039_12201145.1347360038835--