From fe2b398d05821ef51b3bda29c11004597cceec62 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Thu, 8 Jun 2023 22:04:31 -0400 Subject: [PATCH] docs: add instructions for running unit test(s) --- legacy/readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/legacy/readme.md b/legacy/readme.md index 33f316fa..4c577716 100644 --- a/legacy/readme.md +++ b/legacy/readme.md @@ -56,6 +56,18 @@ Ensure you have `REDIS_URL_TEST` set to a valid redis connection URL. pnpm test ``` +Agentic uses [ava][ava] as its test runner. To just execute unit tests, run: + +```bash +pnpm test:unit +``` + +To run a specific test, use the `--match` flag like so: + +```bash +pnpm test:unit --match='name of the test' +``` + ### Scratch - `@agentic/core` @@ -80,3 +92,5 @@ pnpm test ## License MIT © [Travis Fischer](https://transitivebullsh.it) + +[ava]: https://github.com/avajs/ava