Comments (6)
Is this a common pattern to simply specify the reporter name string as the karma.conf.js reporters
field when there's only one reporter in use? If so, this can be added in a future release. Otherwise, it seems like an unofficial and undocumented karma config API and it may not make sense to add support for it given that the official API is supported and working as expected.
from karma-test-explorer.
Hi @lucono. I don't know whether there's a common usage like that: this is the first Karma config I've seen and I don't know what the origin of it was in the codebase. I just thought I'd report it, because getting this plugin up was quite challenging with this undocumented setting. I think many people would have given up:
- The error was hidden (you have to know how to look at and find the correct logs in VSCode)
- Once I found the error, it was unclear what the problem was (sorry I didn't post the error, but it was something like "splice is undefined" with a trace to the line above).
But, whatever you decide to do with this issue, even if you close it, it'll be searchable on The Web :)
Thank you for this tool! It's been great.
from karma-test-explorer.
Here's the error. It's in "Karma Server" output:
------------------------------------
Karma Test Explorer: Launching Karma
------------------------------------
16 08 2022 09:29:26.499:ERROR [config]: Error in config file!
TypeError: (intermediate value)(intermediate value)(intermediate value).splice is not a function
at lt.addReporter (/Users/dmitry/.vscode/extensions/lucono.karma-test-explorer-0.7.3/dist/karma.conf.js:2:9956)
at module.exports (/Users/dmitry/.vscode/extensions/lucono.karma-test-explorer-0.7.3/dist/karma.conf.js:2:10571)
at Object.parseConfig (/Users/dmitry/dev/editor-html/node_modules/karma/lib/config.js:469:26)
at Object.exports.run (/Users/dmitry/dev/editor-html/node_modules/karma/lib/cli.js:288:26)
at Object.<anonymous> (/Users/dmitry/dev/editor-html/node_modules/karma/bin/karma:3:23)
at Module._compile (node:internal/modules/cjs/loader:1163:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
at Module.load (node:internal/modules/cjs/loader:1035:32)
at Module._load (node:internal/modules/cjs/loader:876:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
from karma-test-explorer.
@dminkovsky Try out the fix in the beta branch to confirm if it resolves the issue. You can use the vsix from the CI build, or build it yourself from the beta
branch.
from karma-test-explorer.
Seems to be working! :)
from karma-test-explorer.
Released in v0.7.4
from karma-test-explorer.
Related Issues (20)
- Server doesn't start after v0.6.0 release HOT 5
- Plans for using VSCode native testing UI? HOT 2
- Can't run tests in multiple browsers. Why overwrite "browsers" from karma.conf.js? HOT 1
- Cannot debug, if the project name contains a namespace at package.json HOT 5
- Can't start an Angular project if Angular CLI can't be found, despite setting angularProcessCommand HOT 4
- Macbook Pro M1 - Monterey 12.4 - no tests showing HOT 8
- Tests not loaded for new Angular projects from ng new HOT 9
- Can't see or run any tests if one of them has an error in the code. HOT 2
- Server start failed (can't find angular.json) HOT 3
- Tests won't load in 0.7.2 HOT 4
- Decorators in test fail to compile HOT 8
- Debug does not stop in subprojects HOT 10
- Tests are unmapped when test file has angle bracket Typescript cast syntax HOT 3
- Many Tests show up as unmapped in version 0.7.4 that were correctly mapped in 0.7.3 HOT 11
- Support for Angular in Electron env HOT 15
- Loading extension error: Cannot run new test - Another test operation is still running HOT 2
- If even 1 test fails, tests fail to load Test discovery failed: Process exited with non-zero status code 1 (Click to show log) HOT 8
- Cannot run new test - Another test operation is still running HOT 1
- Tests not loaded for default generated Angular 15 project HOT 9
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-test-explorer.