Running smoke and regression separately
Split your scenarios into a short set you run every time (smoke) and a set that runs everything (regression). No scenario needs to change. Here, smoke is the open-product-details test (made in the Quick Start), and regression is everything.
1. Sort them into folders
Prompt for the AI
In project1, create a smoke folder under scenarios/ and move OpenProductDetails.swift into it. Do not move AddToCart.swift.
After moving, confirm that it still compiles.
If you do it manually (click to show details)
mkdir TestProjects/project1/scenarios/smoke
mv TestProjects/project1/scenarios/OpenProductDetails.swift TestProjects/project1/scenarios/smoke/
A scenario ID (ClassName.methodName) does not change with the folder.
Expected result:
OpenProductDetails.swiftis inscenarios/smoke/.AddToCart.swiftstays directly underscenarios/.
2. Run by folder (smoke) and run everything (regression)
Prompt for the AI
With the ios-run profile of project1, run only the scenarios in the smoke folder.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest run --project project1 --profile ios-run --folder smoke
Give --folder the name of a subfolder directly under scenarios/. It can be repeated, and it can be combined with --scenario and --failed.
Without a folder, everything runs.
Expected result:
- Only the one scenario inside
smokeruns (the open-product-details test).
Next, run everything without naming a folder (regression) and compare how many ran.
Prompt for the AI
With the ios-run profile of project1, run all scenarios.
Expected result:
- Three scenarios run (one in the open-product-details test and two in
AddToCart.swift).
Next: Watching in VSCode