Skip to content

Commit

Permalink
Big ass rename: buster-assertions -> referee
Browse files Browse the repository at this point in the history
  - Switch out test framework (use Buster)
  • Loading branch information
cjohansen committed Jul 19, 2012
1 parent af35309 commit 1e586a0
Show file tree
Hide file tree
Showing 24 changed files with 1,165 additions and 1,360 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,4 +1,3 @@
*.log
doc/*.html
node_modules
test/test.html
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
@@ -1,4 +1,3 @@
vendor
.gitignore
.gitmodules
.npmignore
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
(The BSD License)

Copyright (c) 2010-2011, Christian Johansen, christian@cjohansen.no and
Copyright (c) 2010-2012, Christian Johansen, christian@cjohansen.no and
August Lilleaas, august.lilleaas@gmail.com. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
16 changes: 0 additions & 16 deletions Readme.md

This file was deleted.

24 changes: 24 additions & 0 deletions Readme.rst
@@ -0,0 +1,24 @@
# referee

Referee is in you unit tests, deciding who passes and who fails

[![Build status](https://secure.travis-ci.org/busterjs/referee.png?branch=master)](http://travis-ci.org/busterjs/referee)

``referee`` is a test-framework agnostic assertion and expectation library.
Some highlights:

- Rich library of assertions
- Symmetric assert/refute (refute is ``referee``'s "assert.not*")
- Evented: Emits success and failure events
- Failing assertions throw exceptions by default, but can be configured to not
- API to add custom assertions that provides quite a bit of plumbing for free

Developers - Running tests
==========================

::

npm install
./node_modules/.bin/buster-test --node
./node_modules/.bin/buster-server
./node_modules/.bin/buster-test --browser
21 changes: 21 additions & 0 deletions autolint.js
@@ -0,0 +1,21 @@
module.exports = {
paths: [
"lib/*.js",
"test/*.js"
],
linterOptions: {
node: true,
browser: true,
plusplus: true,
sloppy: true,
vars: true,
nomen: true,
regexp: true,
predef: [
"define",
"assert",
"refute",
"buster"
]
}
};
18 changes: 18 additions & 0 deletions buster.js
@@ -0,0 +1,18 @@
exports["Browser"] = {
libs: [
"node_modules/lodash/lodash.js",
"node_modules/samsam/lib/samsam.js",
"node_modules/bane/lib/bane.js"
],
sources: [
"lib/referee.js",
"lib/expect.js"
],
testHelpers: ["test/test-helper.js"],
tests: ["test/*-test.js"]
};

exports["Node"] = {
extends: "Browser",
environment: "node"
};
22 changes: 0 additions & 22 deletions jsTestDriver.conf

This file was deleted.

4 changes: 0 additions & 4 deletions jsl.conf

This file was deleted.

0 comments on commit 1e586a0

Please sign in to comment.