1
0
mirror of https://github.com/jaygooby/ttfb.sh synced 2025-12-10 07:57:21 +01:00

Notes on testing

This commit is contained in:
Jay Caines-Gooby
2022-07-04 19:57:43 +01:00
parent aeb5ad7cda
commit 6716b46e45

View File

@@ -165,6 +165,14 @@ the time without the connection overhead:
Uses a dirty `eval` to do the ttfb arithmetic. Depends Uses a dirty `eval` to do the ttfb arithmetic. Depends
on `bc` and `column` commands. on `bc` and `column` commands.
# Testing
If you'd like to submit a [PR](https://github.com/jaygooby/ttfb.sh/pulls), please add a test in the [test suite](https://github.com/jaygooby/ttfb.sh/blob/master/tests/tests.bats).
To run the tests, call `make` from the project root. You'll need to have [bats-core](https://github.com/bats-core/bats-core) installed and in your `$PATH`.
If you only want to run a test or two, uncomment the `# skip` lines, so they read `skip` and then those tests will be skipped.
# TODO # TODO
* [x] Show progress when more than one request (`-n 2` etc) option is set * [x] Show progress when more than one request (`-n 2` etc) option is set