This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229325 - Support the Karma test runner
Summary: Support the Karma test runner
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks: 229313
  Show dependency tree
 
Reported: 2013-05-03 12:33 UTC by Petr Jiricka
Modified: 2014-07-18 10:40 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-05-03 12:33:05 UTC
Tracking issue for the Karma test runner (http://karma-runner.github.io/) support.
Comment 1 everflux 2013-07-13 13:30:20 UTC
Perhaps this could run on Nashorn instead of node.js and native V8?
Comment 2 David Konecny 2013-07-15 01:49:42 UTC
Tests executed using Karma are (not unlike js-test-driver) executed in browsers which are "attached" to karma server. So I'm not sure what you mean by "node.js".

In general I agree that Nashorn could be used to execute junit tests without the need for browsers/servers ala karma/js-test-driver.
Comment 3 everflux 2013-07-15 08:29:41 UTC
I understood that the karma server requires the V8 engine and is installed using the node.js package manager. (I assume to satisfy dependencies.)
Comment 4 David Konecny 2013-07-15 22:43:14 UTC
I see, that's true. What do you think would be a benefit of running Karma using Nashorn instead of node.js?
Comment 5 everflux 2013-07-16 09:39:19 UTC
Benefit of leveraging the already installed JDK is to remove the number of external dependencies: I would have to install V8 and node.js in order to make use of karma.

I think it would be a great experience if Netbeans and JDK 8 provides everything out of the box or at least allows the installation of karma without changes to the operating environment.

I think I remember that part of the Nashorn goal was to provide a node.js compatible runtime called node.jar, but I am not aware of something like the node package manager (NPM) is part of Nashorn/node.jar or if the NPM can be run with Nashorn out of the box. I assume a good contact to Oracle could help here...
Comment 6 Tomas Mysik 2013-11-06 12:40:54 UTC
Taking over.
Comment 7 Petr Jiricka 2014-07-18 09:02:18 UTC
Tomas, can this now be closed as done?
Comment 8 Tomas Mysik 2014-07-18 10:40:57 UTC
Yes, we support it. If there are some issues/enhancements, report them separately. Thanks.