2 releases
0.1.1 | Mar 11, 2019 |
---|---|
0.1.0 | Mar 11, 2019 |
#485 in #test
8KB
127 lines
Intention tester
-
Test intention/category detection api against test files (in the
./data
folder). -
You can run intention_tester either manually or with Docker.
Install & Run the binary (Recommended method)
- if you have
rust
andcargo
installed on your machine, you can install theintention_tester
tool as follows:
cargo install intention_tester
- it will by default download the crate, compile the binary target (in ''release'' mode, so it might take a while) and copy them into the
~/.cargo/bin/
directory. - then you can simply run the tool as follows:
intention_tester -c <api-url> -i <data folder path to csv test files>
Run with Docker (if you don't have rust or cargo)
- first you have to add some
csv
files in the./data
folder if you want more tests, with the same schema as thebasic.csv
file test. - then build & run the intention_tester image:
docker build -t intention_tester:1.0 . & docker run --rm intention_tester:1.0 <api-url>
Dependencies
~23–34MB
~571K SLoC