Heads Up! You're viewing the docs for v0.8, an old version of Karma. v6.4 is the newest.

Contributing

If you are thinking about making Karma better, or you just want to hack on it, that’s great here are some tips to get you started.

Getting Started #

  • Make sure you have a GitHub account
  • Submit a ticket for your issue, assuming one does not already exist.
    • Clearly describe the issue including steps to reproduce when it is a bug.
    • Make sure you fill in the earliest version that you know has the issue.
  • Fork the repository on GitHub

Making Changes #

  • Clone your fork

  • Install dependencies via

    $ npm install
    
  • Install global dependencies via

    $ npm install grunt-cli -g
    
  • Checkout a new branch (usually based on master) and name it accordingly to what you intend to do

    • Features get the prefix feature-
    • Bug fixes get the prefix fix-
    • Improvements to the documentation get the prefix docs-

Testing and Building #

Run the tests via

# All tests
$ grunt test

$ grunt test:unit
$ grunt test:e2e
$ grunt test:client

Lint the files via

$ grunt lint

Build the project via

$ grunt build

The default task, just calling grunt will run build lint test.

If grunt fails, make sure grunt-0.4x is installed: https://github.com/gruntjs/grunt/wiki/Getting-started.

Submitting Changes #

Additional Resources #