Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 853 Bytes

File metadata and controls

37 lines (31 loc) · 853 Bytes

jQuery Menu Tests

Defines how to set up an environment to test the project.

Tests Suite Structure

The directories structure within the tests folder reflects what is inside the src folder:

src
\---->[folder-name]
\-------->[file-name].js
test
\---->src/
\-------->[folder-name]
\------------>[file-name].test.js

Installation

The environment requires npm, install it from here if needed (Guide for Installing Node).

Install all dependencies

To install all modules you just need to follow these steps:

  • Go to test
  • Run npm install

For example:

$ cd test
$ npm install

Running tests

Follow these steps to run the tests suite:

  • Go to test
  • Run karma start [config-file]

For example:

$ cd test
$ ./node_modules/karma/bin/karma start karma.config.js