Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. $ ng test --watch=false --code-coverage
  2.  
  3. 10% building modules 1/1 modules 0 active01 06 2017 11:57:51.797:ERROR
  4. [reporter]: Can not load reporter "coverage-istanbul", it is not registered!
  5.  
  6. module.exports = function (config) {
  7. config.set({
  8. basePath: '',
  9. frameworks: ['jasmine', '@angular/cli'],
  10. plugins: [
  11. require('karma-jasmine'),
  12. // require('karma-chrome-launcher'),
  13. require('karma-phantomjs-launcher'),
  14. require('karma-junit-reporter'),
  15. require('karma-mocha-reporter'),
  16. require('@angular/cli/plugins/karma')
  17. ],
  18. files: [
  19. { pattern: './src/test.ts', watched: false }
  20. ],
  21. preprocessors: {
  22. './src/test.ts': ['@angular/cli']
  23. },
  24. mime: {
  25. 'text/x-typescript': ['ts', 'tsx']
  26. },
  27. junitReporter: {
  28. outputDir: 'coverage', // results will be saved as $outputDir/$browserName.xml
  29. useBrowserName: false, // add browser name to report and classes names
  30. outputFile: 'test-report.xml', // if included, results will be saved as $outputDir/$browserName/$outputFile
  31. },
  32. angularCli: {
  33. config: './angular-cli.json',
  34. environment: 'dev'
  35. },
  36. reporters: config.angularCli && config.angularCli.codeCoverage ?
  37. ['mocha', 'junit'] :
  38. ['mocha'],
  39. port: 9876,
  40. colors: true,
  41. logLevel: config.LOG_INFO,
  42. autoWatch: true,
  43. browsers: [
  44. 'PhantomJS',
  45. // 'Chrome'
  46. ],
  47. singleRun: false
  48. });
  49. };
  50.  
  51. ng test --reporters=junit --watch=false || ECHO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement