Skip to content

Commit

Permalink
NOJIRA: Updated jqUnit to work with the latest framework. It require …
Browse files Browse the repository at this point in the history
…a new function fluid.setTesting to load files related to the testing framework on node.
  • Loading branch information
yzen committed Feb 27, 2013
1 parent 9e39d28 commit e043c15
Show file tree
Hide file tree
Showing 8 changed files with 142 additions and 1,859 deletions.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
node_modules
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -8,24 +8,24 @@ and module loading system for resolution, and expects that the code under test
does the same.

To run a file containing test fixtures, simply execute it with node -

```
node fixtureFile.js

```

To write a fixture file, begin with

```
var fluid = require("infusion");
var jqUnit = fluid.require(jqUnit);
```

You may use also use plain "require" to load jqUnit, although it is essential that
it itself may resolve the fluid framework (infusion).
You may use also use plain "require" to load jqUnit, although it is essential that it itself may resolve the fluid framework (infusion).

Then begin by starting a "module" and then issue some tests:

```
jqUnit.module("My Module");
jqUnit.test("My test case", function() {
jqUnit.assertTrue("I assert that this is true", true);
}
);

```

0 comments on commit e043c15

Please sign in to comment.