Comments (4)
@4kochi Thanks to investigate it!
from karma-mocha-reporter.
I tested it with the latest version of angular-cli (1.0.0-rc.2) and it works. I have changed the generated karma.conf.js
as seen below:
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-mocha-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
],
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
{ pattern: './src/test.ts', watched: false }
],
preprocessors: {
'./src/test.ts': ['@angular/cli']
},
mime: {
'text/x-typescript': ['ts','tsx']
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['mocha', 'coverage-istanbul']
: ['mocha', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
from karma-mocha-reporter.
@4kochi i tested it and works! Thaks a lot!
from karma-mocha-reporter.
from karma-mocha-reporter.
Related Issues (20)
- Enhance symbols fallback for windows HOT 2
- Broken on Windows 10 HOT 3
- Console.log written to console twice HOT 3
- Order of output sections HOT 1
- Install procedure HOT 3
- display test duration HOT 1
- Diff isn't showing for object in array
- colors.info symbol can be used for skipped unit tests
- npm audit ansi-regex HOT 11
- I only see describes, no its. HOT 2
- Skipped tests listed in failed tests. HOT 5
- concurrent runs screw up log report HOT 6
- Browser specific tests won't be reported HOT 8
- Multiple describes with same name not grouped correctly
- Incorrect formatting inside Travis CI?? HOT 5
- Support for different failure messages for the same test case HOT 2
- Cannot show file path on error test HOT 5
- Support tests with reserved prototype names HOT 1
- Error sources occasionally being dropped from karma-mocha-reporter summary HOT 3
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-mocha-reporter.