Skip to content

Commit

Permalink
#3 added initial testing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed Dec 6, 2012
1 parent b3ede9d commit a288701
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- 0.8
- 0.6
3 changes: 2 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Follow these steps to build [html.md][];
4. For the compiled JavaScript `cd` to the repository directory and enter `cake build`
* Outputs `md.js` to the `lib` directory
* Outputs `md.min.js` (optimised version) to the `dist` directory
5. To update the documentation enter `cake docs`
5. To run the full test suite enter `npm test`
6. To update the documentation enter `cake docs`
* Outputs documentation to the `docs` directory
* Not currently working on Windows as it uses linux shell commands

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
[html.md][] is a pure JavaScript library for converting [HTML][] in to valid
[Markdown][].

[![Build Status](https://secure.travis-ci.org/neocotic/html.md.png)](http://travis-ci.org/neocotic/html.md)

## Standard Usage

``` javascript
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
"devDependencies" : {
"coffee-script" : "1.4.x",
"docco" : "0.4.x",
"tap" : "0.3.x",
"uglify-js" : "2.2.x"
},
"engines" : {
"node" : "*"
},
"scripts" : {
"test" : "tap ./test"
},
"main" : "./lib/md"
}
6 changes: 6 additions & 0 deletions test/core
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env coffee

md = require '../lib/md'
{test} = require 'tap'

# TODO: Complete core tests
1 change: 1 addition & 0 deletions test/fixtures/sample.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- TODO: Complete sample (the uglier the better) -->

0 comments on commit a288701

Please sign in to comment.