Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atool-test-karma

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atool-test-karma

Unit testing tool with karma & webpack & mocha & sinon & chai

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

atool-test-karma

Built-in

  • mocha
  • chai
  • sinon

Usage

Add -test.js suffix with your test files

"srcipts": {
  "test": "atool-test-karma"
}

with options:

atool-test-karma --port 9888 --assert shouldjs --browsers Chrome

Options

  • --port: server port, default is 9876;
  • --assert: run tests with custom assert library <expectjs、shouldjs、chaijs(default)>
  • support karma args

Browsers & Assert Libs

Browsers:

atool-test-karma --browsers Chrome,Firefox

  • Chrome: npm install karma-chrome-launcher --save-dev
  • Firefox: npm install karma-firefox-launcher --save-dev
  • IE: npm install karma-ie-launcher --save-dev
  • Safari: npm install karma-safari-launcher --save-dev

Assert Libs:

atool-test-karma --assert expectjs

  • expectjs: npm install karma-sinon-expect --save-dev
  • shouldjs: npm install karma-should-sinon karma-should karma-sinon --save-dev

Keywords

FAQs

Package last updated on 20 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc