screamjs
v0.8.0
Published
Test node.js apps faster
Downloads
5
Maintainers
Readme
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
- node v8+
- mongodb v3+
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