Panic Client
This is meant to be used alongside panic-server.
What it is
Panic is a distributed test framework built for gunDB to test end-to-end functionality, such as client/client interactions. Other E2E test frameworks focus more on a single browser. While valuable, collaborative apps are nearly impossible to test. For example:
browsers A and B connect to server C
browser A performs action and is done
server C sees action and is done
browser B sees action and is done
3 cases finished, no failures. Next test.
So while many test frameworks will focus on one of those peers, no test framework includes them all. This is a true end-to-end framework, and without it, real-time data sync has been a nightmare to test against.
Usage
Warning: panic is still under development.
Download panic-server, that's where the tests are written. To connect to the panic dispatcher, first include the panic src:
npm install PsychoLlama/panic-client
Browser:
<script src="panic.js"></script>
Node.js:
var panic = require('panic-client');
Now all that's left is connecting to the panic server:
panic.server('http://localhost:8080')
The tests should begin automatically.
Reference
- TDO - Test Description Object
- Description
- Id
- Configuration object
- an environment object
- callbacks and conditionals