Skip to content

Testing

Jason Reilly edited this page May 3, 2023 · 4 revisions

Running regression tests:

cargo test --release -- --nocapture

Running integration tests:

First start the server in one shell/terminal & then post json data to it from another:

cargo run --release
curl -X POST http://localhost:8000/query -d @sample_input.json -H 'Content-Type: application/json' -H 'Accept: application/json' | jq > /tmp/sample_output.pretty.json
Clone this wiki locally