Running e2e tests from within JetBrains IDEs

341 views
Skip to first unread message

D. Zen

unread,
Apr 11, 2012, 6:44:33 PM4/11/12
to ang...@googlegroups.com
I'm doing my best to be as test driven as possible, and I'm currently using RubyMine (I'm sure WebStorm or IntelliJ IDEA would work for this question as well.) I'm trying to run e2e tests from within the IDE. 

My first problem is I can't get the two test servers running at the same time on ports 9876 and 9877, even from the command line.
So at the moment, I have configured /config/jsTestDriver-scenario.jstd (extension name compatible with JetBrains jsTestDriver plugin)
to use server: http://localhost:9876 so that I only have to have one instance of the jsTestDriver server running. This way I can run each test suite from within the IDE one at a time. 

What is the reason for each test suite using a different server/port, parallelism?
I would suggest that the angular-seed use a single server/port to facilitate easy use of the Jetbrains IDE and jsTestDriver plugin.

I hope the above is helpful to others. One thing I would still like to get working:
How can I get the IDE to run both test suites, one after the other, automatically, with one command.

Thanks,
zen

John Lindquist

unread,
Apr 11, 2012, 7:26:20 PM4/11/12
to ang...@googlegroups.com

I'll reach out to the jetbrains devs and get back to you.

Sent from my phone

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/nMMFVLCWYS4J.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.

D. Zen

unread,
Apr 11, 2012, 9:23:24 PM4/11/12
to ang...@googlegroups.com
Thanks!


On Wednesday, April 11, 2012 7:26:20 PM UTC-4, John Lindquist wrote:

I'll reach out to the jetbrains devs and get back to you.

Sent from my phone

On Apr 11, 2012 4:44 PM, "D. Zen" wrote:
I'm doing my best to be as test driven as possible, and I'm currently using RubyMine (I'm sure WebStorm or IntelliJ IDEA would work for this question as well.) I'm trying to run e2e tests from within the IDE. 

My first problem is I can't get the two test servers running at the same time on ports 9876 and 9877, even from the command line.
So at the moment, I have configured /config/jsTestDriver-scenario.jstd (extension name compatible with JetBrains jsTestDriver plugin)
to use server: http://localhost:9876 so that I only have to have one instance of the jsTestDriver server running. This way I can run each test suite from within the IDE one at a time. 

What is the reason for each test suite using a different server/port, parallelism?
I would suggest that the angular-seed use a single server/port to facilitate easy use of the Jetbrains IDE and jsTestDriver plugin.

I hope the above is helpful to others. One thing I would still like to get working:
How can I get the IDE to run both test suites, one after the other, automatically, with one command.

Thanks,
zen

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/nMMFVLCWYS4J.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.

sergey.s...@gmail.com

unread,
Apr 12, 2012, 12:17:56 PM4/12/12
to ang...@googlegroups.com
Hi guys,

yes, JsTestDriver binds two ports: 9876 and 9877 (for ssl).

It's possible to run all JsTestDriver configs in a directory. Right click on config directory and select "Run 'All in config'". But in this case both configs will be run against one and the same server.
Do you use two JsTestDriver servers because if one of them failed the second is still alive? Another reason?
It seems there is no need to improve test run speed, because your tests run quickly.

Thanks,
Sergey

D. Zen

unread,
Apr 12, 2012, 2:57:25 PM4/12/12
to ang...@googlegroups.com
Sergey,
  Thanks for the info. You pretty much explained everything I needed to know.

I've now created a configuration to run both my unit and e2e tests. And I see now that I don't need to run a separate jsTestDriver server for e2e tests, and can still leave my scenario.jstd with:

Thanks again,
zen
Reply all
Reply to author
Forward
0 new messages