Before you start
An owner or admin must set up two things once for the organization:- Connect the GitHub App. See GitHub.
- On Settings > Integrations, fill in the Repo Tests card.
An organization has one Repo Tests setup. If the setup is not complete, the Select Test page shows a notice.
Each person who runs a test needs a display name, because Stout locks the box under that name. See Account.
Run a test
- In Workbench, select a box. Then select Select Test.
- In Box, select an online box.
- In Branch or commit, select a branch, or type a commit SHA.
- Find the test in the list. To filter the list by path, type in Search tests….
- Select Run next to the test.
What happens during a run
- Stout gets the test file from GitHub, at the branch or commit that you selected.
- Stout locks the box under your display name. It releases the lock when the run ends.
- If you already hold the lock, Stout uses your lock and does not release it.
- Stout gives the test the variables and secrets for the organization and the box. See Variables and secrets.
- The test stops after 300 seconds.
Stop watching a run
While a test runs, the Output card shows Abort. Abort stops the output stream in your browser.Import a one-off script
Import Test runs a Python script that is not in the repository. The button becomes available after you select a box.- Select Import Test. The Run Python Script dialog opens, with the box from the page selected.
- Paste the script on the Code Editor tab, or drop a
.pyfile on the Upload File tab. - Optional: In Arguments, type the arguments, with spaces between them.
- Optional: Under Environment Variables, select Add, and then type a name and a value.
- Select Run Script.
Who can run tests
- Owners and admins can run tests and scripts on every box in the organization.
- Members can run tests and scripts only on the boxes that they can access.
- Only owners and admins can change the Repo Tests setup.
GitHub
Connect the GitHub App and set up Repo Tests.
lager python
Run the same scripts from the Lager CLI.