Skip to content

Latest commit

 

History

History
 
 

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sails tests

Run the tests

From the root directory of Sails core, run:

npm test

Goals

  1. Identify latent inconsistencies or issues that we don't know about yet.
  2. Provide low-level coverage of functionality that is difficult or time-consuming to QA / notice.
  3. Protect the core from any future breaking changes.
  4. Prevent regression.
  5. Make merging pull requests easier by removing me (@mikermcneil) as the bottleneck for merging pull requests. (we can just run the tests to see if a change broke anything)
  6. Make it easier for folks to contribute more tests, and help unify the style and structure of our existing tests.

Writing tests

For more information about writing tests (structural conventions, what to test, what not to test) see the Contribution guide.