Skip to content

Commit

Permalink
Merge pull request #61 from lightsofapollo/perf-refactor
Browse files Browse the repository at this point in the history
Refactor performance tests.. Refactor node deps so we can cleanup repo.
  • Loading branch information
kewisch committed Feb 4, 2013
2 parents 833826a + 87c18f1 commit 847c67c
Show file tree
Hide file tree
Showing 16 changed files with 263 additions and 10,182 deletions.
27 changes: 1 addition & 26 deletions Makefile
Expand Up @@ -24,32 +24,7 @@ OLSON_DB_REMOTE=http://www.iana.org/time-zones/repository/releases/tzdata2012j.t
OLSON_DIR=$(PWD)/tools/tzurl/olson

.PHONY: dev
dev: package test-agent-config node-deps

.PHONY: node-deps
node-deps:
npm install .
# mocha
rm -f test-agent/mocha.js
cp node_modules/mocha/mocha.js test-agent/

rm -f test-agent/mocha.css
cp node_modules/mocha/mocha.css test-agent/

#chai
rm -f test-agent/chai.js
cp node_modules/chai/chai.js test-agent/

# benchmark
rm -Rf test/support/benchmark.js
cp node_modules/benchmark/benchmark.js test/support/

# test-agent
rm -f test-agent/test-agent.js
cp node_modules/test-agent/test-agent.js test-agent/

rm -f test-agent/test-agent.css
cp node_modules/test-agent/test-agent.css test-agent/
dev: package test-agent-config

.PHONY: package
package:
Expand Down
9 changes: 3 additions & 6 deletions README.md
Expand Up @@ -15,10 +15,9 @@ There is a validator that demonstrates how to use the library in a webpage in th

## Developing

The browser build is always found under build/ical.js build/ical.min.js
coming soon.
Run: `npm install .`

Run `make package`
The browser build is always found under build/ical.js.

### Tests

Expand All @@ -30,9 +29,7 @@ You need nodejs/nodejs to install the testing tools.

#### in the browser

1. Run `make dev`

2. Run `make test-server`
1. Run `make test-server`
Go to http://localhost:8789/test-agent/index.html
Run all tests with `make test-browser`

0 comments on commit 847c67c

Please sign in to comment.