Test intention/category detection api against test files (in the ./data
folder).
You can run intention_tester either manually or with Docker.
rust
and cargo
installed on your machine, you can install the intention_tester
tool as follows:
cargo install intention_tester
~/.cargo/bin/
directory.
intention_tester -c <api-url> -i <data folder path to csv test files>
csv
files in the ./data
folder if you want more tests, with the same schema as the basic.csv
file test.
docker build -t intention_tester:1.0 . & docker run --rm intention_tester:1.0 <api-url>