loadtest
Version:
Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.
24 lines (19 loc) • 410 B
JavaScript
import testing from 'testing'
import {WebsocketClient} from '../lib/websocket.js'
function testWebsocketClient(callback) {
const options = {
url: 'ws://localhost:7358/',
maxSeconds: 0.1,
concurrency: 1,
};
new WebsocketClient({options});
testing.success(callback);
}
/**
* Run tests, currently nothing.
*/
export function test(callback) {
testing.run([
testWebsocketClient,
], callback);
}