question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add possibility to stop a karma server

See original GitHub issue

When you start testacular with singleRun=false from within a script (Eg. build script) there is no way to stop it again (apart from killing the process manually).

Someting like

node testacular stop 9876

would be nice.

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jasieducommented, Jul 9, 2013

It is not a high priority to sto a server that you started? Wow!

0reactions
joeflack4commented, Oct 2, 2018

@vojtajina Still staying open for me

(datalab) joe:datalab joeflack4$ ./node_modules/karma/bin/karma start --single-run
02 10 2018 12:40:51.691:WARN [watcher]: Pattern "/Users/joeflack4/projects/datalab/test/fixtures/**/*" does not match any file.
ℹ 「wdm」: Hash: 1af0291e2b7daf4c1038
Version: webpack 3.10.0
Time: 61ms
ℹ 「wdm」: Compiled successfully.
02 10 2018 12:40:51.712:WARN [watcher]: Pattern "/Users/joeflack4/projects/datalab/test/fixtures/**/*" does not match any file.
ℹ 「wdm」: Compiling...
ℹ 「wdm」: wait until bundle finished: noop
ℹ 「wdm」: wait until bundle finished: noop
ℹ 「wdm」: wait until bundle finished: noop
ℹ 「wdm」: wait until bundle finished: noop
ℹ 「wdm」: Hash: 80d465b0bcc75b9fc8d3
Version: webpack 3.10.0
Time: 1324ms
                               Asset     Size  Chunks                    Chunk Names
      test/javascripts/chart.test.js  1.01 MB       0  [emitted]  [big]  test/javascripts/chart.test
    test/javascripts/network.test.js   445 kB       1  [emitted]  [big]  test/javascripts/network.test
  test/javascripts/url-parse.test.js   380 kB       2  [emitted]  [big]  test/javascripts/url-parse.test
test/javascripts/definitions.test.js   407 kB       3  [emitted]  [big]  test/javascripts/definitions.test
    test/javascripts/utility.test.js   408 kB       4  [emitted]  [big]  test/javascripts/utility.test
   [7] ./node_modules/babel-runtime/helpers/classCallCheck.js 208 bytes {0} {1} {2} {3} {4} [built]
  [24] ./source/javascripts/utility.js 5.58 kB {0} {1} {3} {4} [built]
  [78] ./test/javascripts/chart.test.js 6.47 kB {0} [built]
  [79] ./node_modules/jquery/dist/jquery.js 272 kB {0} [built]
  [80] ./node_modules/chai/index.js 40 bytes {0} {1} {2} {3} {4} [built]
 [103] ./node_modules/chai-spies/chai-spies.js 20.5 kB {0} {1} {3} {4} [built]
 [104] ./source/javascripts/chart.js 25 kB {0} [built]
 [162] ./source/javascripts/url-parse.js 2.05 kB {0} {2} [built]
 [170] ./source/javascripts/definitions.js 1.99 kB {0} {3} [built]
 [177] ./env.js 1.21 kB {0} {1} [built]
 [182] ./test/javascripts/definitions.test.js 1.36 kB {3} [built]
 [183] ./test/javascripts/network.test.js 1.29 kB {1} [built]
 [184] ./source/javascripts/network.js 5.41 kB {1} [built]
 [186] ./test/javascripts/url-parse.test.js 1.43 kB {2} [built]
 [187] ./test/javascripts/utility.test.js 4.67 kB {4} [built]
    + 173 hidden modules
ℹ 「wdm」: Compiled successfully.
02 10 2018 12:40:55.725:INFO [karma]: Karma v2.0.5 server started at http://0.0.0.0:9876/

It just hangs there after starting the server. This is whether or not I do karma start --single-run or set the singleRun: true directly in the config.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to keep a Karma server running, but not run tests only ...
I would like run Karma without having to shut down the server on every single run. I know that you can turn off...
Read more >
Configuration File - Karma
The server can be stopped using the karma stop command. exclude #. Type: Array. Default: []. Description: List of files/patterns to exclude from...
Read more >
Karma: changes made to specs are not uploaded to server ...
Karma : changes made to specs are not uploaded to server when using karma-browserify · open the attached project, run karma.conf.js => all...
Read more >
Running tests with Karma and Jasmine manual
Make sure that Karma has the environmental variable of operating system. Create a file named karma.conf.js. To perform this, run karma init karma.conf.js ......
Read more >
How to set up and run fast Karma tests in front-end projects
The most front-end projects uses Karma as test runner for unit tests written in JavaScript. Karma executes tests in real and headless browsers....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found