litefoot
Run your own tests in a real browser with selenium then stream the results out. Uses leadfoot under the hood.
install
npm install litefoot --save-dev
usage
Install and run a Selenium Server.
Add a test
target to your scripts
of your package.json
:
Then run the command npm test
to run your test URL in a real browser via selenium.
notifying litefoot
Your test suite can communicate with litefoot using a global variable stack: window.NOTIFY_LITEFOOT
When your tests are done, push an object to the stack:
windowNOTIFY_LITEFOOT
An example adapter if you're using QUnit:
windowNOTIFY_LITEFOOT = { payloadtype = type payloadid = type + Date windowNOTIFY_LITEFOOT}QUnitQUnitQUnitQUnit
and now litefoot will know and report more info about the lifecycle of your test suite.
using with sauce labs
TODO: instructions coming soon
api usage
// Create an instance of litefootvar litefoot = url: 'http://localhost:3000/test.html' browserName: 'firefox' varName: 'window.NOTIFY_LITEFOOT' // Open a session and run the testslitefoot // Pipe to built in tap reporter or your own reporterlitefoot
Release History
- 1.0.0 - Initial release
License
Copyright (c) 2014 Kyle Robinson Young
Licensed under the MIT license.