Skip to content

Commit 18488a9

Browse files
committed
mocha tests for phpjsutil
1 parent e1d7fca commit 18488a9

File tree

11 files changed

+571
-356
lines changed

11 files changed

+571
-356
lines changed

Makefile

+6-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ setup:
66
bundle exec rake setup_github_pages\[[email protected]:kvz/phpjs.git\] && \
77
cd .. ; \
88

9-
test: build
10-
#node tests/cli.js --debug --abort # To abort at first failure
11-
cd tests && npm install
9+
test:
10+
make build
11+
npm install
12+
./node_modules/.bin/mocha --reporter list
1213
node bin/phpjs.js --action test --debug
1314

1415
# Apply code standards & reformat headers
@@ -19,6 +20,7 @@ npm:
1920
node bin/phpjs.js --action buildnpm --output build/npm.js
2021
ls -al build/npm.js
2122
node build/npm.js
23+
node test/npm/npm.js
2224
echo "Build success. "
2325

2426
publish: npm
@@ -62,7 +64,4 @@ site-preview:
6264
bundle exec rake preview ; \
6365
cd ..
6466

65-
nodejs:
66-
./_tools/compile_node.sh
67-
68-
.PHONY: site%
67+
.PHONY: setup test cleanup npm publish build hook site%

_octopress/source/_includes/custom/asides/banners.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ <h1>Build status</h1>
1313
It's pretty easy to set things up:
1414
</p>
1515
<pre><code>git clone https://github.com/kvz/phpjs.git
16-
cd phpjs/tests/
16+
cd phpjs
1717
npm install
18-
node cli.js --debug --name &lt;function_name&gt;
18+
node bin/phpjs.js --debug --action test --name &lt;function_name&gt;
1919
</code></pre>
2020

2121

0 commit comments

Comments
 (0)