Navigation Menu

Skip to content

Commit

Permalink
Synced with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweiss committed Mar 29, 2013
2 parents 1fec25b + abc2ff8 commit 3e874be
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
test/error.png
test/assets/hinclude.js
node_modules/
18 changes: 18 additions & 0 deletions package.json
@@ -0,0 +1,18 @@
{
"name": "Hinclude",
"version": "1.0.1",
"author": "Mark Nottingham <mnot@mnot.com>",
"description": "Declarative client-side inclusion for the Web",
"contributors": [
{
"name": "Fabio Fabbrucci",
"email": "fabio.fabbrucci@gmail.com"
}
],
"dependencies" : {
"jslint" : "*"
},
"engines": {
"node": ">= 0.6.0"
}
}
5 changes: 2 additions & 3 deletions test/Makefile
@@ -1,6 +1,5 @@

test_port=8081
test: basic none small_media large_media
test: basic none small_media large_media lint

basic: server
phantomjs basic.js $(test_port)
Expand All @@ -14,7 +13,7 @@ small_media: server
large_media: server
phantomjs large_media.js $(test_port)
lint:
jslint --terse ../hinclude.js
node ../node_modules/jslint/bin/jslint.js ../hinclude.js

server:
./serve.sh $(test_port)
17 changes: 11 additions & 6 deletions test/README.md
Expand Up @@ -2,17 +2,22 @@
Tests
=====

Running the tests needs:
Requirements
------------

* [phantomjs](http://phantomjs.org)
* nodejs
* [phantomjs](http://phantomjs.org) (at least 1.8.* version)
* Python
* [jslint](http://www.jslint.com) (optional)

After this we can set up the project

Note that jslint is most easily installed with [npm](http://npmjs.org/).
> npm install
Before the suite is run, start a server:
Running tests locally
---------------------

> ./serve.sh&
> cd test
> make
Release Testing
---------------
Expand Down

0 comments on commit 3e874be

Please sign in to comment.