Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevejpurves/testing_with_nodejs
slides and code for betabeers tenerife March 2015
https://github.com/stevejpurves/testing_with_nodejs
Last synced: about 2 months ago
JSON representation
slides and code for betabeers tenerife March 2015
- Host: GitHub
- URL: https://github.com/stevejpurves/testing_with_nodejs
- Owner: stevejpurves
- Created: 2015-03-17T10:21:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-21T08:51:50.000Z (almost 10 years ago)
- Last Synced: 2024-10-24T08:55:18.583Z (3 months ago)
- Language: JavaScript
- Size: 3.23 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing with Node.js
Slides and code for Betabeers Tenerife March 2015There are 3 examples:
1. using mocha & chai for simple sync and async tests
2. using karma to run mocha & chai tests in real browsers
3. backend testing of a simple MEAN stack todo appRunning the examples
--------------------
- install node for your platform
- install the global tools you'll need:
- npm install mocha -g
- npm install karma-cli -g
- cd into each example directory and run:
- npm install
1 unit tests with mocha
-----------------------
`cd 1_unit_tests_with_mocha`
`mocha`
2 unit tests with karma
-----------------------
`cd 2_unit_tests_with_karma`
`karma start`
3 mean backend testing
----------------------
`cd 3_mean_backend_testing`
`mocha test/start.js`