mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
* Add a Karma configuration for unit/integration tests for the client-side pywb code. * Add an integration test suite which creates an <iframe> loads the client-side rewriting code (wombat.js) in it and then executes a test script. Since wombat.js monkey-patches the DOM and the exact behavior of DOM objects varies between browsers, which we want to test, the suite does not mock the DOM but instead runs a set of tests in an isolated environment against the DOM. * Add Travis config to run the Karma tests
5 lines
83 B
Makefile
5 lines
83 B
Makefile
NODE_BIN_DIR=../node_modules/.bin
|
|
|
|
test:
|
|
$(NODE_BIN_DIR)/karma start --single-run
|