Comments (6)
@doktordirk I was later able to reproduce this. Try out the visx from the beta
branch to confirm if it resolves the issue.
from karma-test-explorer.
tx. Issue solved!
from karma-test-explorer.
Released in v0.6.0
from karma-test-explorer.
@doktordirk if you run the command ps -fe
, what's the full process command printed for the unterminated node processes?
from karma-test-explorer.
@lucono nothing exiting i'd guess
dirk 12592 2625 9 09:25 ? 00:01:03 /usr/bin/node /home/dirk/repo/webapp/node_modules/karma/bin/karma start /home/dirk/.vscode/extensions/lucono.karma-test-explorer-0.5.0/dist/karma.conf --no-single-run
dirk 13623 2625 5 09:28 ? 00:00:25 /usr/bin/node /home/dirk/repo/webapp/node_modules/karma/bin/karma start /home/dirk/.vscode/extensions/lucono.karma-test-explorer-0.5.0/dist/karma.conf --no-single-run
dirk 14173 2625 5 09:29 ? 00:00:22 /usr/bin/node /home/dirk/repo/webapp/node_modules/karma/bin/karma start /home/dirk/.vscode/extensions/lucono.karma-test-explorer-0.5.0/dist/karma.conf --no-single-run
karma.conf.js
// Karma configuration
const path = require('path');
const buildDir = process.env.BUILD_DIR
? process.env.BUILD_DIR
: '../build/tomcat/webapps/ROOT';
const srcDir = 'src/main/webapp/static-content';
const options = process.argv.filter((option) => option.startsWith('--'));
module.exports = (config) => {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['webpack', 'jasmine'],
// list of files / patterns to load in the browser
files: [
{
pattern: `${srcDir}/icon/**/*.*`,
watched: true,
included: false,
served: true,
},
{
pattern: `${srcDir}/img/**/*.*`,
watched: true,
included: false,
served: true,
},
{
pattern: `${srcDir}/font/**/*.*`,
watched: true,
included: false,
served: true,
},
`${srcDir}/js/jquery/jquery-1.8.2.min.js`,
{
pattern: `${buildDir}/static-content/**/*.*`,
watched: false,
included: false,
served: true,
},
{ pattern: `${srcDir}/aurelia/aurelia-tests.js`, watched: false },
],
/*
* preprocess matching files before serving them to the browser
* available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
*/
preprocessors: {
[`${srcDir}/aurelia/aurelia-tests.js`]: ['webpack'],
},
webpack: require('./webpack.config')({ tests: true }),
proxies: {
'/static/icon/': `/base/${srcDir}/icon/`,
'/static/icon/svg/': `/base/${srcDir}/icon/svg/`,
'/static/img/': `/base/${srcDir}/img/`,
'/static/font/': `/base/${srcDir}/font/`,
'/static/webpack/': `${buildDir}/static-content/`,
},
// list of files to exclude
exclude: [],
/*
* test results reporter to use
*
* possible values: 'dots', 'progress'
* available reporters: https://npmjs.org/browse/keyword/karma-reporter
*/
reporters: ['mocha', 'coverage'],
coverageReporter: {
reporters: [
{ type: 'html' },
{ type: 'lcovonly' },
{ type: 'text-summary' },
],
dir: `${buildDir}/karma-results`,
subdir: '.',
},
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
customLaunchers: {
ChromeDebugging: {
base: 'Chrome',
flags: ['--remote-debugging-port=9333', '--disable-gpu', ...options],
},
},
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['ChromeDebugging'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity,
});
};
no vscode settings to (karma-)test-explorer had been added
from karma-test-explorer.
@doktordirk I'm not able to reproduce this (on ubuntu 18.04). The Karma Test Explorer
and Karma Server
output channel debug logs may have some information on why it might be failing to stop. If you'd like to look into it locally, the point where the server is stopped is here, which leads here further down the line, with the Karma server then killed here.
from karma-test-explorer.
Related Issues (20)
- 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
- Tests not loaded for default generated Angular 15 workspace - follow up to issue #60 HOT 2
- Getting error Failed to load tests - Karma server failed to start: spawn npx karma ENOENT HOT 2
- Test Explorer not showing all tests when sharding tests HOT 2
- Debug hangs up if a breakpoint is set. HOT 13
- Unable to install extension HOT 2
- Support different browsers when using multiple projects HOT 8
- Failed to load tests - Karma server failed to connect: Browser Failure - cannot start HOT 25
- Can not run in Angular 11 HOT 1
- Cannot use karma.config.local.js HOT 6
- Nx support HOT 10
- Yarn PNP support HOT 1
- High CPU usage - vscode hangs when the extension is loaded HOT 1
- Configuring tests with more node memory HOT 2
- Cannot debug a test multiple times while in a container HOT 13
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.