Comments (10)
"c:\node_modules/karma-electron" looks strange
from karma-electron.
Are you using a custom path? We test on Windows via Appveyor with electron-prebuilt
so it sounds exclusive to your machine =/
from karma-electron.
I didn't use a custom path.I also use electron-prebuilt that installed by npm. and my system is windows 10
from karma-electron.
As a sanity check, can you try cloning this repository and running its tests?
# Clone this repository
git clone https://github.com/twolfson/karma-electron
cd karma-electron
# Install its dependencies
npm install
# Run its Windows tests
npm run test-windows
from karma-electron.
> [email protected] test-windows c:\work\karma-electron
> npm run test-karma-all
> [email protected] test-karma-all c:\work\karma-electron
> npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map
> [email protected] test-karma-single-run c:\work\karma-electron
> karma start test/integration-test/karma.conf.js --single-run
�[31m21 06 2016 19:47:28.767:ERROR [config]: �[39mError in config file!
[SyntaxError: Unexpected token ILLEGAL]
SyntaxError: Unexpected token ILLEGAL
at Function (native)
at Function.compile (c:\work\karma-electron\node_modules\minstache\index.js:79:10)
at Object.<anonymous> (c:\work\karma-electron\lib\karma-electron-preprocessor.js:17:26)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (c:\work\karma-electron\lib\index.js:7:3)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test-karma-single-run"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-karma-single-run: `karma start test/integration-test/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test-karma-single-run script 'karma start test/integration-test/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the karma-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! karma start test/integration-test/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs karma-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls karma-electron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\work\karma-electron\npm-debug.log
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test-karma-all"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-karma-all: `npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test-karma-all script 'npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the karma-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs karma-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls karma-electron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\work\karma-electron\npm-debug.log
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test-windows"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-windows: `npm run test-karma-all`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test-windows script 'npm run test-karma-all'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the karma-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run test-karma-all
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs karma-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls karma-electron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\work\karma-electron\npm-debug.log
from karma-electron.
Strange, I don't have time at the moment to debug on Windows. Do you think you could give it a shot?
from karma-electron.
It doesn't matter.if I know where is wrong,I'll tell you or make a pull request.thank you very much.
from karma-electron.
Ran into the same problem. the electron
must be capitalized: browsers: [ 'Electron' ]
from karma-electron.
Ah, nice catch @dwelle. For reference, our casing is consistent with Karma's conventions:
http://karma-runner.github.io/1.0/config/browsers.html
http://karma-runner.github.io/1.0/config/preprocessors.html
from karma-electron.
I have solved this by using karma-electron 4.0.
from karma-electron.
Related Issues (20)
- How to use with karma-babel? HOT 27
- `electron` did show not nothing happen then HOT 1
- Can't import nodejs modules in an angular-cli project (Typescript) HOT 1
- Errors without stack traces coming from karma-electron? HOT 5
- running with ndb for debugging? HOT 2
- Unable to open Electron window using --show HOT 3
- Electron 5 nodeIntegration HOT 12
- Custom launcher `require` mechanism doesn't work HOT 4
- Module paths are messed up HOT 5
- Error: Karma plugin is meant to be used from within Angular CLI and will not work correctly outside of it HOT 1
- How to configure NODE_PATH for the Electron instance? HOT 24
- [feature] option like 'require', but for renderer processes. HOT 1
- Karma times out when using Electron 9 and client.useIframe = false HOT 20
- Non-context aware native modules in renderer will cause specs to error HOT 3
- [questions] Is Electron 12 supported? HOT 16
- electron V12.0.4---------require is not defined HOT 3
- ES Modules HOT 2
- "require is not defined" after update to karma-electron 7 / electron 12 HOT 12
- Regardless of the `browserWindowOptions.show` value, a window always opens. HOT 12
- sqlite3 stalls with nodeIntegration true contextIsolation false HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-electron.