screamjs

0.8.0 • Public • Published

Testing node apps with SCREAMjs

SCREAM helps you write terse, legible and maintainable tests.

SCREAM makes testing complicated user stories usually overwhelming with vanilla JavaScript tests more manageable and efficient.

Features

  • Mix and match .coffee & .js from one spec to another
  • DATA.seed from MongoDB .bson files
  • FIXTURE conventions
  • STUB conventions
  • HTTP session & login conventions

Setup

  1. node v8+
  2. mongodb v3+
  3. npm install

4 example apps with SCREAMjs tests

ex1 simple console app

npm run-script ex1

  • js tests
  • example SCREAM folder structure
  • empty scream.json config
ex2 express/mongodb app

npm run-script ex2

  • coffee tests
  • scream.json config with mongodb config
ex3 mongodb data bootstrap,

npm run-script ex3

  • Both coffee & js tests
  • Bootstrap db.Users collection from users.bson file before tests run
  • FIXTURE.users
ex4 express/mongodb/passport app

npm run-script ex4

  • coffee tests
  • LOGIN changes current users
  • PAGE tests expected 200

Tests

npm test

Package Sidebar

Install

npm i screamjs

Weekly Downloads

0

Version

0.8.0

License

MIT

Unpacked Size

90.8 kB

Total Files

63

Last publish

Collaborators

  • jkresner