Enabling the Bash Tool
To enable the Bash tool in Testpilot, you will first need to set theBASH_TOOL environment variable to true in your Testpilot configuration. This can typically be done by adding the following line to your environment configuration file or setting it directly in your deployment environment:
Using the Bash Tool in Test Cases
Once the Bash tool is enabled, you can use it in your test cases by adding a step that describes a script or command you want to execute. You should specify the relative path to the script, as well as any arguments you want Testpilot to pass to the script.Testpilot will use your current working directory and shell environment as the context for
executing scripts.
generate-test-data.sh script with the specified arguments, capture its output, and use that output to fill out the todo items on the TodoMVC application.