* feat: harness * delete tests.rs build artifact * fix binary path * seconds -> milliseconds * update lock * add empty tests module * rustfmt * ToString -> Display * output tests module into build artifacts * clippy * rustfmt
TLSNotary Harness
A harness for testing and benchmarking the TLSNotary protocol with both native and browser support.
Getting started
First build the harness.
./build.sh
With the harness built, run the following to see the available commands and options in the harness CLI.
./bin/runner --help
Network setup
Running the harness requires root privileges to be able to set up a virtual network. Before running tests or benchmarks, first set up the network.
sudo ./bin/runner setup
This network can be torn down simply by running:
sudo ./bin/runner clean
Tests
See the CLI manual for available testing options.
To add new tests, one can register a test in the plugin directory.
See existing tests for an example of how to do so.
Benches
See the CLI manual for available benching options.
To add or modify benchmarks, see the bench.toml file.
Browser
The harness supports running tests and benches in the browser by setting the --target browser flag in the cli.