/generate

Generate is a experimental feature that instructs testdriverai to come up with it's own prompts! The /generatecommand is used in our Test Generationdemo.

/generatewill look at the display and generate lists of exploratory prompts that can be used to generate tests. Each exploratory test looks like a simple markdown file with a list inside.

Check out this test-search-function.mdfor example:

1. Click on the search icon.
2. Type "real-time chat" into the search bar.
3. Assert that search results are relevant and displayed.

TestDriver will generate 10 of these files every time the /generatecommand is called. The files will be stored in ./testdriver/generate/*.md.

Now, you can manually feed these prompts in Installing via NPM but the best way to use the /generatecommand is to generate regression tests using our GitHub action.

Every test will be run in parallel, and the resulting YML can be merged into a regression test!

Last updated