ng test --watch=false --codeCoverage=true no me deja correrlo tengo el siguiente problema <code>18 05 2021 22:09:34.013:WARN [karma-serve...

Pregunta de la clase:
Reporte con Coverage
Andres Caro

Andres Caro

Pregunta
studenthace 4 años

ng test --watch=false --codeCoverage=true

no me deja correrlo tengo el siguiente problema

18 05 2021 22:09:34.013:WARN [karma-server]: Passing raw CLI options to `new Server(config, done)` is deprecated. Use `parseConfig(configFilePath, cliOptions, {promiseConfig: true, throwErrors: true})` to prepare a processed `Config` instance and pass that as the `config` argument instead. Generating browser application bundles (phase: building)...18 05 2021 22:09:39.793:INFO [karma-server]: Karma v6.3.2 server started at http://localhost:9876/ 18 05 2021 22:09:39.794:INFO [launcher]: Launching browsers Chrome with concurrency unlimited 18 05 2021 22:09:39.800:INFO [launcher]: Starting browser Chrome 18 05 2021 22:09:39.804:ERROR [launcher]: Cannot start Chrome Can not find the binary C:\Program Files (x86)\Google\Chrome\Application\chrome.exe Please set env variable CHROME_BIN 18 05 2021 22:09:39.805:ERROR [launcher]: Chrome stdout: 18 05 2021 22:09:39.805:ERROR [launcher]: Chrome stderr: Generating browser application bundles (phase: building)... PS E:\usuario\Programación\Andres Caro\01. Angular\platzi-store>

comparto mi codigo

<// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage'), require('@angular-devkit/build-angular/plugins/karma') ], client: { jasmine: { // you can add configuration options for Jasmine here // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html // for example, you can disable the random execution with `random: false` // or set a specific seed with `seed: 4321` }, clearContext: false // leave Jasmine Spec Runner output visible in browser }, jasmineHtmlReporter: { suppressAll: true // removes the duplicated traces }, coverageReporter: { dir: require('path').join(__dirname, './coverage/platzi-store'), subdir: '.', reporters: [ { type: 'html' }, { type: 'text-summary' } ] }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false, restartOnFileChange: true }); }; >
1 respuestas
para escribir tu comentario
    Andres Caro

    Andres Caro

    studenthace 4 años

    Ya lo resolví es cambiando las variables de entorno donde este tu archivo chrome.exe

Curso Profesional de Angular

Curso Profesional de Angular

Angular 8 es la versión más reciente del framework de JavaScript. Aprende a usar el patrón LIFT, domina los cambios en la sintaxis. Usa el renderizador Ivy para aprovechar las mejoras en el rendimiento de Angular 8. Actualiza tus conocimientos con el Curso Profesional de Angular de Platzi.

Curso Profesional de Angular
Curso Profesional de Angular

Curso Profesional de Angular

Angular 8 es la versión más reciente del framework de JavaScript. Aprende a usar el patrón LIFT, domina los cambios en la sintaxis. Usa el renderizador Ivy para aprovechar las mejoras en el rendimiento de Angular 8. Actualiza tus conocimientos con el Curso Profesional de Angular de Platzi.