-
Notifications
You must be signed in to change notification settings - Fork 1
Picking up suites of other modules? #6
Comments
The problem is that you are importing Mocha directly. If you remove the import it will work since it is exposed from Karma directly. You will additionally either rename |
Better, now my suite is logging for definition (result of On a side note: are you considering having support for tests running in an actual browser, too? (I have done that in an own project by linking Mocha via a |
It works for me:
In regards to browser tests. We are using Karma and it supports running tests in the browser. This plugin currently is using PhantomJS but it is easy to make it use Chrome or Firefox. You can also start tests in watchmode and open the URL that Karma returns, seen as |
Strange. I still get complaints about the
[1]: Trying with Node v5.8.0, PhantomJS 2.1.1 (installed as |
What if you remove all of your |
Reinstalling, I'll be back with the results shortly.. |
Unfortunately still failing, tail of error message:
I've also found this mention of a similar problem in the project |
This is quite strange. I once again made a clean copy of your repo and was able to test it without problems. I understand what the error is and how to fix it, but I can't understand why you are getting it. |
Trying a |
D'oh! It was. You can close the issue now (browser-testing + watcher looks very promising, btw). |
Great that it works! 🙂 |
Hello,
I installed the plugin into my project using
npm install roc-plugin-test-mocha-karma-webpack --save
, but it looks like it's trying to load suites from other installed modules (causing various problems in PhantomJS). I have created a suitetests/poc.test.js
with no-op contents:Trying to run it using:
From my project root. I have also tried
roc test --grep=poc
, but the results are the same.Instead it crashes on what looks like the tests of installed modules, e.g.:
ERROR in ./
/Mocha//minimatch/test/extglob-ending-with-state-char.jsModule not found: Error: Cannot resolve module 'tap' in /Users/jacob/src/lab/miveo/roc-0/node_modules/Mocha/node_modules/minimatch/test
@ ./
/Mocha//minimatch/test/extglob-ending-with-state-char.js 1:11-25(Around 25 of those is reported with small slight variations, reporting missing modules
tap
,less
,sass
,fs
etc)(The repo with my attempts is here)
The text was updated successfully, but these errors were encountered: