Skip to content

Latest commit

 

History

History
 
 

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Drive Tests

We believe in Test Pyramid.

Structure

A subsequent paths the same as the structure of the code in the lib/ directory.

How to run tests

Run all tests:

npm test

Run unit tests:

npm run test:unit

Run integration tests:

npm run test:integration

How to write tests

We use:

We prefer expect assertions syntax instead of should.

All tools are bootstrapped before tests:

  • expect function is available in global context
  • Sinon sandbox is created before each test and available as this.sinon property in the test's context
  • Envs from .env are loaded before all tests

Evolution helpers

We use js-evo-services-ctl library to manipulate Evolution's services.

Other tools

You may find other useful tools for testing in lib/test directory.