Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bootstrapping a test runner

  • Loading branch information...
commit 2eeb259547b82b3567eb01a7b22ee196a0d76c36 1 parent ff596c2
@mattrobenolt mattrobenolt authored
View
4 Makefile
@@ -0,0 +1,4 @@
+test:
+ @NODE_ENV=test ./node_modules/.bin/mocha --reporter dot
+
+.PHONY: test
View
15 package.json
@@ -1,18 +1,25 @@
{
"name": "raven",
- "description": "A standalone (Node.js) client for django-sentry (Sentry 2.0) ",
+ "description": "A standalone (Node.js) client for Sentry",
"keywords": ["raven", "sentry", "python"],
- "version": "0.1-dev",
+ "version": "0.1.0-dev",
"repository": "git://github.com/mattrobenolt/raven-node.git",
"author": "Matt Robenolt <matt@ydekproductions.com>",
"main": "index",
+ "scripts": {
+ "test": "make test"
+ },
"engines": {
"node": ">= 0.6.0 < 0.7.0"
},
"dependencies": {
- "node-uuid": "1.2.0"
+ "node-uuid": "*"
},
"devDependencies": {
- "connect": "1.7.1"
+ "connect": "*",
+ "express": "*",
+ "mocha": "*",
+ "should": "*",
+ "nock": "*",
}
}
View
2  test/mocha.opts
@@ -0,0 +1,2 @@
+--require should
+--slow 20
View
8 test/test_something.js
@@ -0,0 +1,8 @@
+describe('Array', function(){
+ describe('#indexOf()', function(){
+ it('should return -1 when the value is not present', function(){
+ [1,2,3].indexOf(5).should.equal(-1);
+ [1,2,3].indexOf(0).should.equal(-1);
+ })
+ })
+})
Please sign in to comment.
Something went wrong with that request. Please try again.