Testdriver generating tests
Skill testdriverai/testdriverai/ai/skills/testdriver-generating-tests
Use AI coding agents and exploration mode to generate TestDriver testsFrom its SKILL.md
npx -y skills add testdriverai/testdriverai --skill testdriver-generating-testsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.5 KB, 284 tokens by cl100k_base, as published. Nobody here has run it
Instructions for Coding Agents
We recommend starting with our quickstart then supplying your coding agent with our agent instructions file.
<Card title="TestDriver Agent Instructions" icon="link" arrow="true" horizontal href="https://github.com/testdriverai/testdriverai/blob/main/ai/agents/testdriver.md?plain=1"> Copy the current version of our agent instructions to provide your coding agent with up-to-date instructions on how to generate TestDriver tests. </Card>Then, you can prompt your coding agent to generate tests. Here is an example prompt:
Make me a TestDriver test that does the following steps:
Navigate to practicetestautomation.com
Type username student into Username field
Type password Password123 into Password field
Push Submit button
Verify new page contains expected text 'logged in'
AI Exploration Mode
Within a test, the ai() method lets TestDriver autonomously figure out how to accomplish a task. It's useful for dynamic or unpredictable UIs where explicit actions may be difficult to define.
// Handle dynamic or unpredictable UI
await testdriver.ai('dismiss any popups or modals that appear');
<Info>Explicit commands are preferred for production tests, as they are cheaper, faster, and more reliable.</Info>
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.