1.3.0 • Published 8 years ago

barrt-wrk v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

barrt-wrk - wrk support for BARRT (A Bash Rspec-like Regression Test framework)

Use it

Install these two modules from npm:

npm i --save barrt
npm i --save barrt-wrk

Edit the setup.sh file in your test suite to include the following:

#!/bin/bash

modules=$(dirname "$BASH_SOURCE")/node_modules

. "$modules"/barrt/setup.sh
. "$modules"/barrt-wrk/setup.sh

# other setup tasks...

Create a runner.sh file in your test suite with these contents:

#!/bin/bash

modules=$(dirname "$BASH_SOURCE")/node_modules

exec "$modules"/barrt/runner.sh

API

The following are provided as bash functions:

Performing a wrk request

record_wrk $wrk_arguments...

Expectations

expect_wrk_socket_errors

expect_wrk_failed_requests

expect_wrk_total_requests

Accessing parts of the response

get_wrk_socket_errors

get_wrk_failed_requests

get_wrk_total_requests

Utility

inspect_next_wrk

get_wrk_os_x_safe_connection_limit

License

MIT

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago