0.0.36 • Published 1 year ago

karma-spec-reporter v0.0.36

Weekly downloads
309,866
License
MIT
Repository
github
Last release
1 year ago

karma-spec-reporter

Join the chat at https://gitter.im/mlex/karma-spec-reporter CircleCI Coverage Status

Test reporter, that prints detailed results to console (similar to mocha's spec reporter).

Usage

To use in your own Node.js project, just execute

npm install karma-spec-reporter --save-dev

This will download the karma-spec-reporter and add the dependency to package.json.

Then add 'spec' to reporters in karma.conf.js, e.g.

reporters: ['spec']

Take a look at the karma-spec-reporter-example repository to see the reporter in action.

Configuration

To limit the number of lines logged per test or suppress specific reporting, use the specReporter configuration in your karma.conf.js file

//karma.conf.js
...
  config.set({
    ...
      reporters: ["spec"],
      specReporter: {
        maxLogLines: 5,             // limit number of lines logged per test
        suppressSummary: true,      // do not print summary
        suppressErrorSummary: true, // do not print error summary
        suppressFailed: false,      // do not print information about failed tests
        suppressPassed: false,      // do not print information about passed tests
        suppressSkipped: true,      // do not print information about skipped tests
        showBrowser: false,         // print the browser for each spec
        showSpecTiming: false,      // print the time elapsed for each spec
        failFast: true,             // test would finish with error when a first fail occurs
        prefixes: {
          success: '    OK: ',      // override prefix for passed tests, default is '✓ '
          failure: 'FAILED: ',      // override prefix for failed tests, default is '✗ '
          skipped: 'SKIPPED: '      // override prefix for skipped tests, default is '- '
        }
      },
      plugins: ["karma-spec-reporter"],
    ...

Contributing

Running tests

To run the tests for the index.js file, run: npm test

Generating Coverage

To see the coverage report for the module, run: npm run coverage

@lume/cliclying-uikelvin-id-generator-aws-xrayotel-aws-xray-id-generatorangular-rx-uieduivbt@infinitebrahmanuniverse/nolb-karma-s@everything-registry/sub-chunk-2006@author.io/karma-base@carlosvillu/tester@colorless/cli@dbg-riskit/dave-ui-devkit@dbg-riskit/angular-devkit@demiazz/brandon@blueking/bkchart.js@blueking/bkchartsrupert-gruntsaffron-bundleruisvue-buildvue-cli-plugin-ui-karmavue-click-to-editvue-color-tablevusion-clivuex-testerwebpack-jasmine-builderwebpack-karma-jasmineweiler-electrode-archetype-react-app-devxdc-karmayaozeyi-uiy3-uiya-driverzhao-123test_gulu_leets-jasmine-unitvbuild-karmasimpan.jssimpleui-pre-alphasyn-dev-toolssynaptic-scouttable-generatortable-generator-testroc-plugin-test-mocha-karma-webpacksix-widget-buildsupportsky-toolbelt@hejunjietest/jj-ui@domestika/tester@djforth/ap_karma@djforth/ap_karma_wp1000-packages@fpjs-incubator/broyster@htmlacademy/in-browser-console.js@cloukit/library-build-chain@l5769389/eleui@leonardodino/builder-react-component-dev@myetherwallet/eth2-keystore@mrbuilder/plugin-karma@ngx-library/infrastructure@mass-ui/sshell@nwetzel/modern-web-dev-build@krakenjs/karma-config-grumbler@marioq/pj-uimygulpmrbuilder-plugin-karma@zerothstack/toolchainaction-tracker@zoovu/runner-web-design-basefiberglassfarmbot-web-frontendmonarch-uimodern-web-dev-build@xarc/opt-karma@xilution/xilution-ui-build@xilution/xilution-web-client-build@skyrpex/starpack@skiano/ng-tools@sweexui/weex-cli-service@sweet-weex/weex-cli-service@ubiquits/toolchaindsv-climelpack-jasminemelpack-jasmine-buildelectrode-archetype-react-app-dev-syncelectrode-archetype-react-app-dev-sync-internal-jmcriffeyelectrode-archetype-react-app-sync-develectrode-boltelectrode-archetype-opt-karma@vue2do/testfreshes-manangular-passwordangular-data-serviceangular-buildangularitygoodeggs-karmaobei-uibangerastekaavaility-workflow-angular@webank/fes-cli
0.0.35

1 year ago

0.0.36

1 year ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

6 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago