screamjs
Test node.js apps faster
Last updated 2 years ago by jkresner .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install screamjs 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.8.0                                ...           latest (2 years ago)

5 Versions

  • 0.8.0                                ...           2 years ago
  • 0.7.3                                ...           3 years ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 8
Dependencies (12)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |