Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.34 KB

Development.md

File metadata and controls

73 lines (50 loc) · 1.34 KB

Development

Getting started

Clone the repository and install the developer dependencies:

git clone git://github.com/unexpectedjs/unexpected.git unexpected
cd unexpected && npm install

Source files

  • lib/index.js:
    The entry point for the library.
  • lib/Unexpected.js:
    The core of the library.
  • lib/Assertion.js:
    The class that assertions are instantiated from.
  • lib/utils.js:
    Utility functions
  • lib/styles.js:
    MagicPen styles for controling the output.
  • lib/types.js:
    Type definitions for every type Unexpected understands.
  • lib/assertions.js:
    All assertions that is included in the core library.

Running tests in the console

make test
make test-phantomjs

Running tests in the browser

make test-chrome-headless

or you can run them interactively through Karma:

make test-browser

click the debug button to open the HTML runner.

Coverage report

make coverage

Build a new release

Make sure that you have commited all changes before making the release.

The following make-targets will build the production version of unexpected, commit the generated file and tag a new version using NPM.

Patch release

make release patch

Minor release

make release minor

Major release

make release major