Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#3 added initial testing infrastructure

  • Loading branch information...
commit a288701e9206f01a16685b145212244a94aee6d7 1 parent b3ede9d
@neocotic authored
View
4 .travis.yml
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.8
+ - 0.6
View
3  INSTALL.md
@@ -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
View
2  README.md
@@ -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
View
7 package.json
@@ -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"
}
View
6 test/core
@@ -0,0 +1,6 @@
+#!/usr/bin/env coffee
+
+md = require '../lib/md'
+{test} = require 'tap'
+
+# TODO: Complete core tests
View
1  test/fixtures/sample.html
@@ -0,0 +1 @@
+<!-- TODO: Complete sample (the uglier the better) -->
Please sign in to comment.
Something went wrong with that request. Please try again.