@orion-qa/orion 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (637) hide show
  1. package/.claude/agents/automation-strategist.md +1 -0
  2. package/.claude/agents/change-agent.md +1 -0
  3. package/.claude/agents/codebase-analyst.md +2 -1
  4. package/.claude/agents/environment-discovery.md +1 -0
  5. package/.claude/agents/evidence-validator.md +1 -0
  6. package/.claude/agents/executor.md +1 -0
  7. package/.claude/agents/failure-analyst.md +2 -1
  8. package/.claude/agents/implementer.md +2 -1
  9. package/.claude/agents/requirement-analyst.md +1 -0
  10. package/.claude/agents/reviewer.md +1 -0
  11. package/.claude/agents/test-reporter.md +1 -0
  12. package/.claude/settings.json +25 -0
  13. package/.claude/skills/appium/SKILL.md +1 -1
  14. package/.claude/skills/appium/templates/README.md +6 -9
  15. package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
  16. package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
  17. package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
  18. package/.claude/skills/appium/templates/project-java/.env.example +4 -0
  19. package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
  20. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
  21. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
  22. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
  23. package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
  24. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
  25. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
  26. package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
  27. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
  28. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
  29. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
  30. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
  31. package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
  32. package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
  33. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
  34. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  35. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
  36. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
  37. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
  38. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
  39. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
  40. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
  41. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
  42. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
  43. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
  44. package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
  45. package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
  46. package/.claude/skills/architecture-analysis/SKILL.md +3 -2
  47. package/.claude/skills/automation-implementation/SKILL.md +8 -5
  48. package/.claude/skills/automation-implementation/references/patterns.md +46 -24
  49. package/.claude/skills/automation-review/references/assertion-guard.md +1 -1
  50. package/.claude/skills/code-review/SKILL.md +5 -2
  51. package/.claude/skills/code-review/references/pattern-rules.md +12 -7
  52. package/.claude/skills/documentation/SKILL.md +23 -18
  53. package/.claude/skills/execution/SKILL.md +7 -3
  54. package/.claude/skills/httpclient/templates/README.md +6 -7
  55. package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
  56. package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
  57. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
  58. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
  59. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
  60. package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
  61. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
  62. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
  63. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
  64. package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
  65. package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
  66. package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
  67. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
  68. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  69. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  70. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
  71. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
  72. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  73. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
  74. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  75. package/.claude/skills/javascript/references/sources.md +1 -1
  76. package/.claude/skills/k6/SKILL.md +1 -1
  77. package/.claude/skills/k6/templates/README.md +5 -3
  78. package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
  79. package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
  80. package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
  81. package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
  82. package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
  83. package/.claude/skills/karate/templates/README.md +4 -5
  84. package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
  85. package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
  86. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
  87. package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
  88. package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
  89. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
  90. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
  91. package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
  92. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
  93. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
  94. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
  95. package/.claude/skills/newman/templates/README.md +4 -5
  96. package/.claude/skills/newman/templates/collection/.env.example +2 -0
  97. package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
  98. package/.claude/skills/newman/templates/collection/package.json +2 -1
  99. package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
  100. package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
  101. package/.claude/skills/newman/templates/collection/run.js +41 -31
  102. package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
  103. package/.claude/skills/orion/SKILL.md +19 -12
  104. package/.claude/skills/orion/references/assess-fix.md +35 -0
  105. package/.claude/skills/orion/references/batch.md +64 -0
  106. package/.claude/skills/orion/references/blockers.md +1 -1
  107. package/.claude/skills/orion/references/capabilities.md +1 -1
  108. package/.claude/skills/orion/references/conversation.md +65 -20
  109. package/.claude/skills/orion/references/delivery-formats.md +24 -36
  110. package/.claude/skills/orion/references/doctor.md +1 -1
  111. package/.claude/skills/orion/references/hosts.md +1 -0
  112. package/.claude/skills/orion/references/modes.md +7 -3
  113. package/.claude/skills/orion/references/plain-language.md +55 -0
  114. package/.claude/skills/orion/references/project-context-files.md +8 -2
  115. package/.claude/skills/orion/references/recovery-loop.md +8 -0
  116. package/.claude/skills/orion/references/setup-card.md +29 -8
  117. package/.claude/skills/orion/references/status-lines.md +9 -4
  118. package/.claude/skills/orion/references/task-brief.md +1 -0
  119. package/.claude/skills/orion/references/work-branch.md +3 -1
  120. package/.claude/skills/orion/scripts/batch_detect.mjs +98 -0
  121. package/.claude/skills/orion/scripts/batch_state.mjs +179 -0
  122. package/.claude/skills/orion/scripts/browser_setup.mjs +41 -21
  123. package/.claude/skills/orion/scripts/cases_export.py +724 -0
  124. package/.claude/skills/orion/scripts/codemap.mjs +116 -0
  125. package/.claude/skills/orion/scripts/done_check.mjs +195 -0
  126. package/.claude/skills/orion/scripts/env_check.mjs +8 -3
  127. package/.claude/skills/orion/scripts/env_check.py +12 -5
  128. package/.claude/skills/orion/scripts/fix_plan.mjs +170 -0
  129. package/.claude/skills/orion/scripts/graph.mjs +400 -0
  130. package/.claude/skills/orion/scripts/hooks/lean_guard.mjs +162 -0
  131. package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
  132. package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
  133. package/.claude/skills/orion/scripts/lib/table.mjs +116 -0
  134. package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
  135. package/.claude/skills/orion/scripts/quiet.mjs +160 -0
  136. package/.claude/skills/orion/scripts/report_check.mjs +77 -0
  137. package/.claude/skills/orion/scripts/results_parse.mjs +209 -0
  138. package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
  139. package/.claude/skills/orion/scripts/rules.mjs +92 -0
  140. package/.claude/skills/orion/scripts/run_state.mjs +238 -0
  141. package/.claude/skills/orion/scripts/suite_check.mjs +267 -0
  142. package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
  143. package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
  144. package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
  145. package/.claude/skills/orion/templates/project-context/defects.md +5 -0
  146. package/.claude/skills/orion/templates/project-context/report.md +45 -0
  147. package/.claude/skills/orion/templates/project-context/retry-policy.md +6 -0
  148. package/.claude/skills/orion/templates/project-context/run.md +4 -1
  149. package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
  150. package/.claude/skills/orion/templates/project-context/test-design.md +24 -0
  151. package/.claude/skills/pact/SKILL.md +2 -2
  152. package/.claude/skills/pact/templates/README.md +4 -2
  153. package/.claude/skills/pact/templates/project/package.json +2 -2
  154. package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
  155. package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
  156. package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
  157. package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
  158. package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
  159. package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
  160. package/.claude/skills/playwright/SKILL.md +6 -6
  161. package/.claude/skills/playwright/templates/README.md +29 -10
  162. package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
  163. package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
  164. package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
  165. package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
  166. package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
  167. package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
  168. package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
  169. package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
  170. package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
  171. package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
  172. package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
  173. package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
  174. package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
  175. package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +63 -0
  176. package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
  177. package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
  178. package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
  179. package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
  180. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
  181. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
  182. package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
  183. package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
  184. package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
  185. package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
  186. package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
  187. package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
  188. package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
  189. package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
  190. package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
  191. package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
  192. package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
  193. package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
  194. package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
  195. package/.claude/skills/playwright/templates/javascript/fixtures/index.js +85 -0
  196. package/.claude/skills/playwright/templates/javascript/fixtures/session.js +82 -0
  197. package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
  198. package/.claude/skills/playwright/templates/javascript/jsconfig.json +12 -0
  199. package/.claude/skills/playwright/templates/javascript/package.json +7 -3
  200. package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +62 -0
  201. package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
  202. package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
  203. package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
  204. package/.claude/skills/playwright/templates/javascript/playwright.config.js +45 -24
  205. package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
  206. package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
  207. package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
  208. package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
  209. package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
  210. package/.claude/skills/playwright/templates/javascript/src/config/env.js +107 -0
  211. package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
  212. package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
  213. package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
  214. package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
  215. package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
  216. package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
  217. package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
  218. package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
  219. package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
  220. package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
  221. package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
  222. package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
  223. package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
  224. package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
  225. package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
  226. package/.claude/skills/playwright/templates/project/.env.example +8 -0
  227. package/.claude/skills/playwright/templates/project/fixtures/index.ts +86 -0
  228. package/.claude/skills/playwright/templates/project/fixtures/session.ts +78 -0
  229. package/.claude/skills/playwright/templates/project/gitignore +9 -2
  230. package/.claude/skills/playwright/templates/project/package.json +8 -6
  231. package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +57 -0
  232. package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
  233. package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
  234. package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
  235. package/.claude/skills/playwright/templates/project/playwright.config.ts +49 -23
  236. package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
  237. package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
  238. package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
  239. package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
  240. package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
  241. package/.claude/skills/playwright/templates/project/src/config/env.ts +109 -0
  242. package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
  243. package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
  244. package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
  245. package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
  246. package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
  247. package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
  248. package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
  249. package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
  250. package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
  251. package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
  252. package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
  253. package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
  254. package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
  255. package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
  256. package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
  257. package/.claude/skills/playwright/templates/python/.env.example +8 -0
  258. package/.claude/skills/playwright/templates/python/conftest.py +91 -16
  259. package/.claude/skills/playwright/templates/python/gitignore +5 -0
  260. package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
  261. package/.claude/skills/playwright/templates/python/page_objects/base_page.py +57 -0
  262. package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
  263. package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
  264. package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
  265. package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
  266. package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
  267. package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
  268. package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
  269. package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
  270. package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
  271. package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
  272. package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
  273. package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
  274. package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
  275. package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
  276. package/.claude/skills/playwright/templates/python/src/config/env.py +109 -0
  277. package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
  278. package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
  279. package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
  280. package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
  281. package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
  282. package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
  283. package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
  284. package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
  285. package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
  286. package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
  287. package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
  288. package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
  289. package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
  290. package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
  291. package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
  292. package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
  293. package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
  294. package/.claude/skills/quality-checks/SKILL.md +11 -11
  295. package/.claude/skills/quality-checks/templates/README.md +14 -12
  296. package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
  297. package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
  298. package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
  299. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
  300. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
  301. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
  302. package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
  303. package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
  304. package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
  305. package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
  306. package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
  307. package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
  308. package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
  309. package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
  310. package/.claude/skills/requests/templates/README.md +6 -7
  311. package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
  312. package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
  313. package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
  314. package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
  315. package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
  316. package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
  317. package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
  318. package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
  319. package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
  320. package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
  321. package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
  322. package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
  323. package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
  324. package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
  325. package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
  326. package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
  327. package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
  328. package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
  329. package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
  330. package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
  331. package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
  332. package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
  333. package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
  334. package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
  335. package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
  336. package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
  337. package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
  338. package/.claude/skills/requirement-analysis/SKILL.md +1 -1
  339. package/.claude/skills/rest-assured/SKILL.md +1 -1
  340. package/.claude/skills/rest-assured/templates/README.md +6 -7
  341. package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
  342. package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
  343. package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
  344. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
  345. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
  346. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
  347. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
  348. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
  349. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
  350. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
  351. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
  352. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
  353. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
  354. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
  355. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  356. package/.claude/skills/{selenium/templates/java-testng/src/test/java/automation/framework → rest-assured/templates/java-testng/src/test/java/automation/utils}/AutomationError.java +4 -4
  357. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  358. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  359. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  360. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  361. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  362. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  363. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  364. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  365. package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
  366. package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
  367. package/.claude/skills/selenium/SKILL.md +1 -1
  368. package/.claude/skills/selenium/templates/README.md +25 -13
  369. package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
  370. package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
  371. package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
  372. package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
  373. package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
  374. package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
  375. package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
  376. package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
  377. package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
  378. package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +44 -14
  379. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
  380. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
  381. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
  382. package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
  383. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
  384. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
  385. package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
  386. package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
  387. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
  388. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
  389. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  390. package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  391. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
  392. package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
  393. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
  394. package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  395. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
  396. package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  397. package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
  398. package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
  399. package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
  400. package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
  401. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
  402. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
  403. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
  404. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
  405. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
  406. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
  407. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
  408. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +41 -17
  409. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
  410. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
  411. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
  412. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
  413. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
  414. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
  415. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
  416. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
  417. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  418. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
  419. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  420. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  421. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  422. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
  423. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  424. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  425. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  426. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  427. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  428. package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
  429. package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
  430. package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
  431. package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
  432. package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
  433. package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
  434. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +20 -20
  435. package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
  436. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
  437. package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
  438. package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
  439. package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
  440. package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
  441. package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
  442. package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
  443. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
  444. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
  445. package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
  446. package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
  447. package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
  448. package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
  449. package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
  450. package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
  451. package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
  452. package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
  453. package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
  454. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
  455. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
  456. package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
  457. package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
  458. package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
  459. package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
  460. package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
  461. package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
  462. package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
  463. package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
  464. package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
  465. package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
  466. package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
  467. package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
  468. package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
  469. package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
  470. package/.claude/skills/self-healing/SKILL.md +2 -2
  471. package/.claude/skills/test-design/SKILL.md +1 -1
  472. package/.claude/skills/test-reporting/references/tool-mapping.md +13 -9
  473. package/.claude/skills/ui-observation/SKILL.md +8 -6
  474. package/.claude/skills/ui-observation/references/login-methods.md +1 -1
  475. package/.claude-plugin/plugin.json +15 -2
  476. package/.codex/agents/automation-strategist.toml +1 -0
  477. package/.codex/agents/change-agent.toml +1 -0
  478. package/.codex/agents/codebase-analyst.toml +1 -0
  479. package/.codex/agents/environment-discovery.toml +1 -0
  480. package/.codex/agents/evidence-validator.toml +1 -0
  481. package/.codex/agents/executor.toml +1 -0
  482. package/.codex/agents/failure-analyst.toml +1 -0
  483. package/.codex/agents/implementer.toml +2 -1
  484. package/.codex/agents/requirement-analyst.toml +1 -0
  485. package/.codex/agents/reviewer.toml +1 -0
  486. package/.codex/agents/test-reporter.toml +1 -0
  487. package/.codex/hooks.json +15 -0
  488. package/.cursor/commands/orion.md +1 -1
  489. package/.cursor/hooks.json +10 -0
  490. package/.devin/hooks.v1.json +13 -0
  491. package/.gemini/agents/automation-strategist.md +1 -0
  492. package/.gemini/agents/change-agent.md +1 -0
  493. package/.gemini/agents/codebase-analyst.md +1 -0
  494. package/.gemini/agents/environment-discovery.md +1 -0
  495. package/.gemini/agents/evidence-validator.md +1 -0
  496. package/.gemini/agents/executor.md +1 -0
  497. package/.gemini/agents/failure-analyst.md +1 -0
  498. package/.gemini/agents/implementer.md +2 -1
  499. package/.gemini/agents/requirement-analyst.md +1 -0
  500. package/.gemini/agents/reviewer.md +1 -0
  501. package/.gemini/agents/test-reporter.md +1 -0
  502. package/.gemini/commands/orion.toml +2 -2
  503. package/.github/hooks/orion-lean.json +13 -0
  504. package/.github/prompts/orion.prompt.md +2 -2
  505. package/.windsurf/workflows/orion.md +2 -2
  506. package/AGENTS.md +6 -6
  507. package/README.md +55 -140
  508. package/assets/architecture.svg +104 -0
  509. package/assets/run-flow.svg +1 -1
  510. package/bin/orion.mjs +6 -6
  511. package/hosts/gemini-extension/gemini-extension.json +1 -1
  512. package/hosts/gemini-extension/hooks/hooks.json +16 -0
  513. package/hosts/gemini-extension/policies/platform.toml +5 -0
  514. package/package.json +6 -1
  515. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
  516. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
  517. package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
  518. package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
  519. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
  520. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
  521. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
  522. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
  523. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
  524. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
  525. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
  526. package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
  527. package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
  528. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
  529. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
  530. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
  531. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
  532. package/.claude/skills/k6/templates/project/data/builders.js +0 -8
  533. package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
  534. package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
  535. package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
  536. package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
  537. package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
  538. package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
  539. package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
  540. package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
  541. package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
  542. package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
  543. package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
  544. package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
  545. package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
  546. package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
  547. package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
  548. package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
  549. package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
  550. package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
  551. package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
  552. package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
  553. package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
  554. package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
  555. package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
  556. package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
  557. package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
  558. package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
  559. package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
  560. package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
  561. package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
  562. package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
  563. package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
  564. package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
  565. package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
  566. package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
  567. package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
  568. package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
  569. package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
  570. package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
  571. package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
  572. package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
  573. package/.claude/skills/playwright/templates/python/framework/config.py +0 -86
  574. package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
  575. package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
  576. package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
  577. package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
  578. package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
  579. package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
  580. package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
  581. package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
  582. package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
  583. package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
  584. package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
  585. package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
  586. package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
  587. package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
  588. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
  589. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
  590. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
  591. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
  592. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
  593. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
  594. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
  595. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
  596. package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
  597. package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
  598. package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
  599. package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
  600. package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
  601. package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
  602. package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
  603. package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
  604. package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
  605. package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
  606. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
  607. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
  608. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
  609. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
  610. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
  611. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
  612. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
  613. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
  614. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
  615. package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
  616. package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
  617. package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
  618. package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
  619. package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
  620. package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
  621. package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
  622. package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
  623. package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
  624. package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
  625. package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
  626. package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
  627. /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
  628. /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
  629. /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
  630. /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
  631. /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
  632. /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
  633. /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
  634. /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
  635. /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
  636. /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
  637. /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
@@ -12,28 +12,33 @@ description: Writes the final execution report, traceability matrix and troubles
12
12
 
13
13
  ## Procedure
14
14
  1. Include only claims the evidence map marks supported.
15
- 2. Write the sections in the template below.
16
- 3. Link every decision and approval.
17
- 4. List open items and what the user must do next.
18
- 5. **Limitations of this run:** fail checks `not run`, `unverified` locators, flaky counts, impacted tests not run, and anything recorded `n/a — design mode`.
15
+ 2. Write the report in the shape and style below, then check it: `node .claude/skills/orion/scripts/report_check.mjs project-context/runs/<run id>.report.md`. Fix every finding it names and run it again until it passes (exit 0) before the report is shown. No shell on this host: go through the Style list by hand and write `report check: by hand` in the details block.
16
+ 3. Approvals with their decision ids go in the details block.
17
+ 4. What the user must do next goes in "Needs your attention", one line each with the action.
18
+ 5. **What wasn't checked** (fail checks not run, unproven locators, flaky counts, impacted tests not run): the ones that change the user's next step in "Needs your attention", all of them under "Not checked" in the details block.
19
19
  6. Design mode: the report is the test design and traceability matrix; sections about code, runs and recovery say `n/a — design mode`.
20
20
  7. Sharing: the report stays in the run's chat and `project-context/`. Publishing it elsewhere (Confluence, a Jira comment) is a tracker write: the orchestrator offers it, asks H9 and delegates test-reporter (automate step 10); this skill never writes outside the run.
21
21
 
22
22
  ## Output
23
- ```markdown
24
- # Automation report — <requirement>
25
- ## Outcome (3 lines)
26
- ## Traceability
27
- | AC | Scenarios | Tests | Last result | Evidence |
28
- ## What changed (files)
29
- ## Runs
30
- ## Failures and recovery
31
- ## Decisions and approvals
32
- ## Limitations of this run
33
- ## Open items / next steps
34
- ## Troubleshooting notes
35
- _Generated by the AI test-automation agents from validated results; accepted by <user handle> (D-<nnn>) or not yet accepted._
36
- ```
23
+ The report follows [templates/project-context/report.md](../orion/templates/project-context/report.md), saved as `project-context/runs/<run id>.report.md`. In order:
24
+ 1. **Title and verdict.** `# <story title> · test report`, then one bold verdict (✅ Ready to accept · ⚠️ Ready, with notes · ❌ Not ready) and one sentence: what was built and how it ran.
25
+ 2. **Facts table:** story, app (URL and environment), tests (count, kind, tool and language, folder), runs (3 runs and the fail check), date.
26
+ 3. **Coverage:** one row per requirement in plain words, the test that covers it, and its result as ✅ n/n · ❌ failed · ⚠️ flaky · ⏭ not run. Cases the user accepted that the story didn't name are marked *(added)*. A requirement with no test says why in the Test column.
27
+ 4. **Needs your attention:** at most 5 lines, most important first, each ending with what the user can do. Left out when there is nothing.
28
+ 5. **What was added:** tests, page objects, test data and test-case files, one line per kind.
29
+ 6. **Run it yourself:** the folder and one command.
30
+ 7. **Details for engineers**, inside `<details>`: runs and logs, review, failures and fixes, approvals with their decision ids, not checked, troubleshooting.
31
+ 8. The footer: written by Orion's agents from checked results; accepted by whom and when, or not yet accepted.
32
+
33
+ Design mode: the same shape; the verdict says the test cases are ready for review, the coverage table's result column reads `designed`, and there is no "Run it yourself".
34
+
35
+ ## Style (the report is read by managers and testers, not only engineers)
36
+ - Everything above the details block fits on one screen: about 40 lines.
37
+ - Plain words. Above the details block: no decision ids, gate numbers, agent names, rule codes, failure classes or inferred-requirement ids (P-1); test ids (TS-n) only next to what the test checks.
38
+ - Never "unknown" on its own: say what wasn't checked and why ("Not checked: the fail-check logs weren't saved").
39
+ - Paths only inside the workspace, in backticks, relative to it; never a temporary folder.
40
+ - Numbers only from evidence; a number without a source isn't written.
41
+ - No repeated facts: each fact once, in its section.
37
42
 
38
43
  ## Rules
39
44
  - No claim without a supported evidence row.
@@ -13,7 +13,7 @@ description: Runs automated tests with the project's own runner and configuratio
13
13
 
14
14
  ## Procedure
15
15
  1. **Where.** `run_where: local` or `container` → run inside the brief's worktree path (or the working copy on the work branch); never in a copy that lacks the new files. `ci` → use the `cicd-integration` skill with `ref` = the work branch. Running project code on this machine needs H6 in the brief (it executes the repository's scripts with your credentials). Mobile and desktop: the device, emulator, simulator or desktop session and the app build come from the brief or the environment profile; none available → `blocked`, NEEDS_ENVIRONMENT.
16
- 2. **Dependencies.** A fresh worktree has none installed. Install with the lockfile or manifest command the project uses; the host's `ask` rule for installs applies, except in a build's test project, where the runner and its browser are part of the request. **Browsers go to the runner's default location** (no `PLAYWRIGHT_BROWSERS_PATH`, or a path set in the project's own script); a browser that exists only in a temporary sandbox cache doesn't count, because the user's normal shell won't find it. Never `npx -y` or `pip install` an unlisted package.
16
+ 2. **Dependencies.** A fresh worktree has none installed. **Node, and the worktree's `package.json` and lockfile are the same as the main checkout's** (no dependency change in this work): don't install a second copy; link the suite's own `node_modules` into the worktree and keep the link out of git: `node -e "require('fs').symlinkSync(require('path').resolve('<main checkout>/node_modules'),'node_modules','junction')"` (the main checkout is the first path of `git worktree list`; `junction` works on Windows without admin rights), then add `node_modules` to `$(git rev-parse --git-common-dir)/info/exclude` once. **The suite's git-ignored env files are linked the same way** (each file its config loads, e.g. `env-files/.env.dev` or `.env`, linked to the main checkout's copy and added to the same exclude list), so the worktree runs exactly like the main checkout; never copy their contents. **The links stay until the worktree is removed**: the user runs the tests there until the work is merged, so the report's "Run it yourself" for a worktree is `cd <worktree> && <the suite's command>`, never an install (`npm ci` there would empty the suite's own `node_modules` through the link). Check with `npx --no-install playwright --version` (the suite's version, nothing downloaded). The link is removed only with `node -e "require('fs').unlinkSync('node_modules')"`, before the worktree is removed and before any install in it (`npm ci` or a recursive delete through the link would empty the suite's own `node_modules`). The main checkout has no `node_modules` yet, or the dependencies differ: install with the lockfile or manifest command the project uses; the host's `ask` rule for installs applies, except in a build's test project, where the runner and its browser are part of the request. **Browsers go to the runner's default location** (no `PLAYWRIGHT_BROWSERS_PATH`, or a path set in the project's own script); a browser that exists only in a temporary sandbox cache doesn't count, because the user's normal shell won't find it. Never `npx -y` or `pip install` an unlisted package.
17
17
  | Stack | Install | Browsers / tools |
18
18
  |---|---|---|
19
19
  | Node (Playwright TS/JS, selenium-webdriver) | `npm ci` | `npx playwright install chromium` |
@@ -21,9 +21,11 @@ description: Runs automated tests with the project's own runner and configuratio
21
21
  | Python | in the project's virtual environment: `python -m pip install -r requirements.txt` (or `poetry install`, `uv sync`) | `python -m playwright install chromium` |
22
22
  | .NET | `dotnet restore` (then `dotnet build`) | `pwsh bin/Debug/<tfm>/playwright.ps1 install chromium` |
23
23
  **When Playwright's browser can't be downloaded** (a proxy or policy blocks it): don't work around the block; run on the installed Chrome (else Edge) instead and say so in the report: Playwright TS/JS starters `PW_CHANNEL=chrome` (or `msedge`) in the command's environment; Python `--browser-channel chrome`; .NET `-- Playwright.LaunchOptions.Channel=chrome`. A project without that option keeps its own config: report the blocker ([blockers](../orion/references/blockers.md)) with the one fix (allow the download, or add the channel option).
24
- 3. **Command.** Build it from the project's own scripts (package.json scripts, Maven/Gradle tasks, runner config). Don't invent flags the project doesn't use, except the repeat and retry flags in step 5.
24
+ 3. **Command.** Build it from the project's own scripts (package.json scripts, Maven/Gradle tasks, runner config). Don't invent flags the project doesn't use, except the repeat and retry flags in step 5. **The counted runs are the user's own command** (the report's "Run it yourself" line): the project's script with the scope after it (`npm test -- tests/settings.spec.ts`, `mvn test -Dtest=…`), not the runner called around it, and with no setting given only on the command line (output-only flags, such as the reporter and its output file, are fine): a value the run needs (`PW_CHANNEL`, a timeout, a base URL) goes into the project's `.env` (names in `.env.example`), so a manual run, UI mode or the editor's test explorer sees the same. A UI suite also runs once the way an editor or UI mode starts it, only the UI tests and no separate setup step (Playwright `--project=<the tests' project> --no-deps`; pytest `tests/ui`; NUnit `--filter FullyQualifiedName~Ui`; TestNG or JUnit `-Dtest=<class>`); a failure there that the full run doesn't have is a blocking finding (signing in must not depend on a setup step having run, nor trust an old saved session).
25
25
  4. **Environment.** Prod → stop unless the brief cites H5. Pass environment variables by name only.
26
26
  4a. **Run mode** (existing tests only, `orion/references/modes.md`): the scope is the user's selection, run once, no fail check and no 3-run rule; flaky and failed counts as the runner reports them.
27
+ 4a2. **Timeouts from the site, any stack.** Before the first run of a new or extended UI or API project: `node .claude/skills/orion/scripts/timing_profile.mjs --project <test project> --maps project-context/ui-maps/<story>.md` writes `timeouts.json` at the test project's root from the explored pages' Timing table; every starter's flags read it in their own terms (Playwright's navigation, action and expect timeouts; Selenium's and Appium's explicit wait; the API clients' request timeout), and an environment variable still wins. An existing suite that has its own timeout settings gets the measured values proposed in the report instead, never edited without the user's yes. After the counted runs, the same with `--results project-context/results/<run id>-<n>.json …` raises the test timeout when a test used more than half of it (never lowers). The report's details list each timeout with its `why`. No Timing table: the defaults stay, said so.
28
+ 4b. **Order, so failures cost minutes, not the whole run.** First run only the new tests once, stopping early (`--max-failures=5` for Playwright, the runner's equivalent elsewhere) and with as many workers as the suite's config allows. Failures go to the failure-analyst and are fixed or reported **before** any repeat or full run; never run the full existing suite, or the 3 counted runs, while a known failure is open. Then the 3 counted runs (step 5), then the impacted tests (step 6). The full existing suite runs only when the brief asks for it (a regression run, H6), once. Every run's wall time (from the runner's report) goes in the RESULT.
27
29
  5. **New tests: 3 runs, retries off.** Run the new tests 3 times with the runner's retries disabled; all 3 must agree. Mixed results → `failed`, class FLAKY, with the counts per run. Keep one report per run.
28
30
  | Runner | Scope | 3 runs, retries off |
29
31
  |---|---|---|
@@ -36,9 +38,11 @@ description: Runs automated tests with the project's own runner and configuratio
36
38
  | Pact (consumer, `node:test`) | `npm run test:contract` | the command 3 times; `# pass`/`# fail` per run; then the provider verification once (`npm run verify`), with `HTTP_PROXY`/`HTTPS_PROXY` cleared for that command when a proxy is set |
37
39
  | NUnit (`dotnet test`) | `--filter "FullyQualifiedName~<name>"` | the command 3 times with `--logger "trx;LogFileName=run-<n>.trx"`; no `[Retry]`. A filter with no match exits 0: check the count |
38
40
  6. **Impacted tests: 1 run.** Run the existing tests the reviewer listed as impacted (they import a changed shared file). Failures here go to the failure-analyst like any other.
41
+ 6q. **Quiet output (where Node exists).** Run every test, build and install command through the quiet runner: `node .claude/skills/orion/scripts/quiet.mjs <the command exactly as you would type it>`. Same command, same exit code, same approval; it prints the failures with their context, warnings, the runner's counts and the last lines, and saves the full output to `project-context/logs/` (grep that file when you need more, never re-run for output). During an open run a raw runner command is blocked in Claude Code and names this form. Measured: a passing Playwright run 2.3 KB → 0.7 KB of output; a failing one keeps every failure line (2026-11-18-cost-breakdown.md).
39
42
  7. **Capture.** Exit code, pass/fail/skip **and flaky** counts as the runner reports them (a test that passed only on retry is flaky, not passed), duration, the last 30 lines of output.
40
43
  7a. **Inventory check.** Compare the tests the runner actually executed with the planned scope: new tests × 3 runs + impacted tests. 0 executed, fewer than planned, or a new test reported as skipped is `failed`, never `passed`, even when the exit code is 0: a filter, tag or group that matches nothing, a file outside the runner's test pattern, or a class missing from the suite (AUTOMATION_DEFECT). Never add a pass-with-no-tests flag (Playwright `--pass-with-no-tests`). Run mode: 0 executed → `needs_user` (the selection matches no test). Skipped impacted tests: list each with its skip reason; a skip the base branch doesn't have is a finding.
41
- 8. **Reports.** Record report, trace and screenshot paths by name (e.g. `playwright-report/index.html`, `target/surefire-reports/`, `reports/run-1.xml`, `TestResults/*.trx`), taken from the runner config or the command. If the runner writes no report, write `none` and cite the config line. A summary line is not a report path.
44
+ 8. **Reports.** Record report, trace and screenshot paths by name (e.g. `test-summary/index.html` and `playwright-report/index.html`, `target/surefire-reports/`, `reports/run-1.xml`, `TestResults/*.trx`), taken from the runner config or the command. If the runner writes no report, write `none` and cite the config line. A summary line is not a report path. **In an existing suite, run reports never go into a new folder in it:** per-run files (JSON, JUnit, the HTML report) are written to the workspace's `project-context/results/` (e.g. `--reporter=list,json` with the JSON output file there), or to an output folder the suite's own config already names and ignores.
45
+ 8a. **Per-test results (required: the done check counts these files, not the chat).** After each counted run, where a shell and Node exist, from the workspace root (not the worktree; the report path may point into it; the script writes only inside the folder it runs in): `node .claude/skills/orion/scripts/results_parse.mjs <report path> --run <run id>-<n> --out project-context/results/<run id>-<n>.json` (JUnit XML, TRX or Playwright JSON). Get the report from the counted run itself, through the suite's own command, never a second run or a direct runner call: Playwright `node .claude/skills/orion/scripts/quiet.mjs "npm test --silent -- <spec> --retries=0 --reporter=json > project-context/results/<run id>-<n>.pw.json"` (the quotes keep the redirect inside the counted command; for a project in `sut/<app>/`, from the workspace root: `quiet.mjs "cd sut/<app> && npm test --silent -- <spec> --retries=0 --reporter=json > ../../project-context/results/<run id>-<n>.pw.json"`; the runner creates the results folder. Measured on the demo site, 2026-11-19: 3 runs, 18 of 18 each, parsed, done check passed) (`--silent` keeps npm's banner out of the JSON; no environment variable); pytest `--junitxml=<file>`; Maven and Gradle write JUnit XML themselves; `dotnet test --logger trx`. Put its summary line in the RESULT. Exit 1 (no results found) is reported as `results: none parsed` with the report path; it never replaces the runner's own counts.
42
46
  9. If anything failed, return `failed` with the run record. Classification is the failure-analyst's job.
43
47
 
44
48
  ## Output
@@ -2,13 +2,12 @@
2
2
 
3
3
  Used when a build starts a new API project in `sut/<app>/` (the user named this stack) or after Gate 4 approves it for an existing repo (D-nnn). Copy `csharp-nunit/`, fill every `{{TOKEN}}` (none may remain), rename `gitignore` to `.gitignore`, put the settings into the project's one `.env` (gitignored; names in `.env.example`), then run the health smoke test against the test environment before writing story tests.
4
4
 
5
- - Stack: .NET 8, NUnit, HttpClient
6
- - Tokens: `{{TEST_SDK_VERSION}}`, `{{NUNIT_VERSION}}`, `{{NUNIT_ADAPTER_VERSION}}`, `{{HEALTH_PATH}}`, `{{HEALTH_STATUS}}` (an unauthenticated health or status endpoint and its documented code); current versions are looked up at init and recorded.
7
- - Files: `Api/ApiConfig.cs` (environment first, then `.env`, read on first use) · `Api/ApiError.cs` (one error shape) · `Api/ApiClient.cs` (one shared HttpClient, relative paths, token, `DescribeAsync` without headers) · `Data/HealthData.cs` · `Tests/HealthTests.cs` (`Ts0Ac0…`). Every function and class has a doc comment.
8
- - Settings at run time: `API_BASE_URL` (test environment), `API_TOKEN` (optional bearer token), read from the environment first, then `.env`.
5
+ - Stack: .NET 8, NUnit, HttpClient. The suite architecture for an API ([patterns.md](../../automation-implementation/references/patterns.md)): no pages and no browser; the token is set once on one shared HttpClient.
6
+ - Tokens: `{{TEST_SDK_VERSION}}`, `{{NUNIT_VERSION}}`, `{{NUNIT_ADAPTER_VERSION}}`, `{{STORY_KEY}}`, `{{HEALTH_PATH}}`, `{{HEALTH_STATUS}}`, `{{PRODUCTS_PATH}}`; current versions are looked up at init and recorded.
7
+ - Files: `Config/{Env,Flags,Paths}.cs` · `Services/{ApiClient,HealthApi,ProductsApi}.cs` (one shared client; failure text without headers) · `Resources/TestData/{testData.json,TestData.cs}` (paths, expected statuses, `ProductBuilder`) · `Resources/Desc/ProductsDesc.cs` (cases; `[Case]` gives titles and categories) · `Fixtures/BaseTest.cs` (`write` tests ignored unless `RUN_WRITE_TESTS=1`) · `Tests/Api/` · `Tests/Unit/` · `Utils/`. HTML report: `reports/report.html`.
8
+ - Settings at run time: `API_BASE_URL` (test environment), `API_TOKEN` (optional bearer token), `RUN_WRITE_TESTS`, `LOG_LEVEL`, `TIMEOUT_SECONDS`, read from the environment first, then `.env`.
9
9
  - CI (when the project has no test job and Gate 4 approves adding one): `ci/github-actions.yml` → `.github/workflows/api-tests.yml`; inputs `target`, `filter`, `repeat` (1 or 3); linted with actionlint 1.7.12 + shellcheck 0.11.0; its test step ran 3× on 2026-10-15 against the previous starter layout, and the command it calls is unchanged.
10
10
 
11
- Run here 2026-10-16 (NUnit 4.6.1, NUnit3TestAdapter 6.3.1, Microsoft.NET.Test.Sdk 18.11.0, SDK 8.0.131) against a local stub that answers 200 only with the expected bearer token: build 0 warnings; 3/3 "Passed: 1"; wrong expected status fails with `Expected: 404 But was: 200` and the message `Call GET /health.json: HTTP 200`; the token appears 0 times outside `.env`. Evidence: [run record](../../../../evals/workflows/runs/2026-10-16-starter-templates.md).
11
+ Run here 2026-11-12 (NUnit 5.0.0, NUnit3TestAdapter 6.3.1, Microsoft.NET.Test.Sdk 18.12.0, SDK 8.0.134) against `evals/fixtures/api-stub/server.mjs`: build 0 warnings; 3/3 "Passed 6, Skipped 1"; 3/3 "Passed 7" with `RUN_WRITE_TESTS=1`; `--filter TestCategory=smoke` 1 test; create status 201 → 200 fails with `Call POST /products: HTTP 201 … Expected: 200`; the token in no file under `bin/` or `reports/` ([run record](../../../../evals/workflows/runs/2026-11-12-suite-architecture.md)).
12
12
 
13
- ## Starter v2 (2026-10-22)
14
- One worked resource, **products**: a client per resource (`ProductsApi`: create, get, delete), a **builder** that makes a valid product with a run-unique name, a **cases file**, and two more cases: **TS-1** a created product can be read back unchanged (deleted in teardown, only after a successful create) and **TS-2** an unknown id answers 404. New token: `{{PRODUCTS_PATH}}`. Rename the resource to the app's own. Run here 2026-10-22 against `evals/fixtures/api-stub/server.mjs` (now with `/products`): 3/3 runs passed, fail check (create status 201 → 200) failed on the create assertion ([run record](../../../../evals/workflows/runs/2026-10-22-starter-v2.md)).
13
+ Earlier layouts: [2026-10-16](../../../../evals/workflows/runs/2026-10-16-starter-templates.md), [2026-10-22](../../../../evals/workflows/runs/2026-10-22-starter-v2.md).
@@ -2,3 +2,7 @@
2
2
  API_BASE_URL=
3
3
  # Only when the API needs a bearer token:
4
4
  API_TOKEN=
5
+ # Optional switches (Config/Flags.cs):
6
+ RUN_WRITE_TESTS=
7
+ LOG_LEVEL=info
8
+ TIMEOUT_SECONDS=30
@@ -1,5 +1,4 @@
1
1
  <Project Sdk="Microsoft.NET.Sdk">
2
-
3
2
  <PropertyGroup>
4
3
  <TargetFramework>net8.0</TargetFramework>
5
4
  <ImplicitUsings>enable</ImplicitUsings>
@@ -7,12 +6,17 @@
7
6
  <IsPackable>false</IsPackable>
8
7
  <IsTestProject>true</IsTestProject>
9
8
  <RootNamespace>Automation</RootNamespace>
9
+ <GenerateDocumentationFile>true</GenerateDocumentationFile>
10
+ <!-- The HTML report: reports/report.html after `dotnet test`. -->
11
+ <VSTestLogger>html%3BLogFileName=report.html</VSTestLogger>
12
+ <VSTestResultsDirectory>$(MSBuildProjectDirectory)/reports</VSTestResultsDirectory>
10
13
  </PropertyGroup>
11
-
12
14
  <ItemGroup>
13
15
  <PackageReference Include="Microsoft.NET.Test.Sdk" Version="{{TEST_SDK_VERSION}}" />
14
16
  <PackageReference Include="NUnit" Version="{{NUNIT_VERSION}}" />
15
17
  <PackageReference Include="NUnit3TestAdapter" Version="{{NUNIT_ADAPTER_VERSION}}" />
16
18
  </ItemGroup>
17
-
19
+ <ItemGroup>
20
+ <None Update="Resources/TestData/testData.json" CopyToOutputDirectory="PreserveNewest" />
21
+ </ItemGroup>
18
22
  </Project>
@@ -0,0 +1,62 @@
1
+ using Automation.Utils;
2
+
3
+ namespace Automation.Config;
4
+
5
+ /// <summary>
6
+ /// Settings of the suite, read in this one place: the process environment first, then the project's one `.env`
7
+ /// (gitignored), read once, when a value is first needed, so loading a class never reads it or fails.
8
+ /// </summary>
9
+ public static class Env
10
+ {
11
+ private static readonly Lazy<Dictionary<string, string>> EnvFile = new(ReadEnvFile);
12
+
13
+ /// <summary>The API under test (<c>API_BASE_URL</c>, a test environment), without a trailing slash.</summary>
14
+ /// <returns>The URL.</returns>
15
+ public static string BaseUrl() => Required("API_BASE_URL").TrimEnd('/');
16
+
17
+ /// <summary>The bearer token (<c>API_TOKEN</c>), if the API needs one; never logged.</summary>
18
+ /// <returns>The token, or null.</returns>
19
+ public static string? Token() => Value("API_TOKEN");
20
+
21
+ /// <summary>A required setting.</summary>
22
+ /// <param name="name">The variable name.</param>
23
+ /// <returns>Its value.</returns>
24
+ /// <exception cref="MissingSettingError">When it isn't set.</exception>
25
+ public static string Required(string name) => Value(name) ?? throw new MissingSettingError(name);
26
+
27
+ /// <summary>An optional setting: the process environment first, then the project's `.env`.</summary>
28
+ /// <param name="name">The variable name.</param>
29
+ /// <returns>Its value, or null when unset or blank.</returns>
30
+ public static string? Value(string name)
31
+ {
32
+ var fromEnv = Environment.GetEnvironmentVariable(name);
33
+ var raw = !string.IsNullOrWhiteSpace(fromEnv) ? fromEnv : EnvFile.Value.GetValueOrDefault(name);
34
+ return string.IsNullOrWhiteSpace(raw) ? null : raw.Trim();
35
+ }
36
+
37
+ /// <summary>Every setting in effect, for `Utils/Redact` to find the secret ones by name.</summary>
38
+ /// <returns>Values by name, from the `.env` and the environment (the environment wins).</returns>
39
+ public static Dictionary<string, string> All()
40
+ {
41
+ var all = new Dictionary<string, string>(EnvFile.Value);
42
+ foreach (System.Collections.DictionaryEntry e in Environment.GetEnvironmentVariables())
43
+ {
44
+ all[(string)e.Key] = (string?)e.Value ?? "";
45
+ }
46
+ return all;
47
+ }
48
+
49
+ /// <summary>Reads the `NAME=value` lines of the project's `.env`; empty when there is no file (CI uses secrets).</summary>
50
+ /// <returns>The values by name.</returns>
51
+ private static Dictionary<string, string> ReadEnvFile()
52
+ {
53
+ var values = new Dictionary<string, string>();
54
+ if (!File.Exists(Paths.EnvFile)) return values;
55
+ foreach (var line in File.ReadAllLines(Paths.EnvFile))
56
+ {
57
+ var eq = line.IndexOf('=');
58
+ if (eq > 0 && !line.TrimStart().StartsWith('#')) values[line[..eq].Trim()] = line[(eq + 1)..].Trim();
59
+ }
60
+ return values;
61
+ }
62
+ }
@@ -0,0 +1,35 @@
1
+ namespace Automation.Config;
2
+
3
+ /// <summary>Switches and timeouts of a run, from the environment with safe defaults. Change behaviour here or in `.env`, never in a test.</summary>
4
+ public static class Flags
5
+ {
6
+ /// <summary>Whether tests in the `write` category (they create or change data) run: <c>RUN_WRITE_TESTS=1</c>.</summary>
7
+ /// <returns>True to run them.</returns>
8
+ public static bool RunWriteTests() => Env.Value("RUN_WRITE_TESTS") == "1";
9
+
10
+ /// <summary>The log level of `Utils/Log`: error, warn, info or debug (<c>LOG_LEVEL</c>, default info).</summary>
11
+ /// <returns>The level.</returns>
12
+ public static string LogLevel() => Env.Value("LOG_LEVEL") ?? "info";
13
+
14
+ /// <summary>The per-request timeout (<c>TIMEOUT_SECONDS</c>, default 30).</summary>
15
+ /// <returns>The timeout.</returns>
16
+ public static TimeSpan Timeout() =>
17
+ TimeSpan.FromSeconds(int.TryParse(Env.Value("TIMEOUT_SECONDS"), out var s) && s > 0 ? s
18
+ : MeasuredMs("requestTimeout") is double ms ? Math.Ceiling(ms / 1000) : 30);
19
+
20
+ /// <summary>The site's measured timeout in ms for <paramref name="key"/> (<c>timeouts.json</c> at the project root, written by Orion's timing profile from the explored pages and the runs), or null when there is none.</summary>
21
+ /// <param name="key">The key, e.g. <c>actionTimeout</c>.</param>
22
+ /// <returns>The milliseconds, or null.</returns>
23
+ public static double? MeasuredMs(string key)
24
+ {
25
+ try
26
+ {
27
+ using var doc = System.Text.Json.JsonDocument.Parse(File.ReadAllText(Path.Combine(Paths.Root, "timeouts.json")));
28
+ return doc.RootElement.TryGetProperty(key, out var v) && v.TryGetProperty("ms", out var ms) && ms.GetDouble() > 0 ? ms.GetDouble() : null;
29
+ }
30
+ catch (Exception e) when (e is IOException or UnauthorizedAccessException or System.Text.Json.JsonException or InvalidOperationException)
31
+ {
32
+ return null;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,22 @@
1
+ namespace Automation.Config;
2
+
3
+ /// <summary>Every file location the suite uses, in one place; nothing else builds a path.</summary>
4
+ public static class Paths
5
+ {
6
+ /// <summary>The project folder (the one with the .csproj): `dotnet test` runs from bin/, so it is found upwards.</summary>
7
+ public static readonly string Root = FindRoot();
8
+
9
+ /// <summary>The project's one `.env` (gitignored).</summary>
10
+ public static readonly string EnvFile = Path.Combine(Root, ".env");
11
+
12
+ /// <summary>Walks up from the test binaries to the folder that holds the project file.</summary>
13
+ /// <returns>That folder, or the binaries' folder when none is found.</returns>
14
+ private static string FindRoot()
15
+ {
16
+ for (var dir = new DirectoryInfo(AppContext.BaseDirectory); dir is not null; dir = dir.Parent)
17
+ {
18
+ if (dir.GetFiles("*.csproj").Length > 0) return dir.FullName;
19
+ }
20
+ return AppContext.BaseDirectory;
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ using Automation.Config;
2
+ using NUnit.Framework;
3
+
4
+ namespace Automation.Fixtures;
5
+
6
+ /// <summary>
7
+ /// What every API test starts from: tests in the `write` category (they create or change data) are ignored unless
8
+ /// <c>RUN_WRITE_TESTS=1</c>. The shared client (`Services/ApiClient`) is built once, on first use.
9
+ /// </summary>
10
+ public abstract class BaseTest
11
+ {
12
+ /// <summary>Ignores `write` tests unless allowed.</summary>
13
+ [SetUp]
14
+ public void StartTest()
15
+ {
16
+ var categories = TestContext.CurrentContext.Test.Properties["Category"].Select(c => c.ToString());
17
+ if (categories.Contains("write") && !Flags.RunWriteTests())
18
+ {
19
+ Assert.Ignore("creates or changes data in the API; set RUN_WRITE_TESTS=1 to run it");
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ using Automation.Utils;
2
+
3
+ namespace Automation.Resources.Desc;
4
+
5
+ /// <summary>
6
+ /// Test descriptions of the health check and the products resource: one per behaviour, keyed by case id. Tests point
7
+ /// here with <c>[Case(typeof(ProductsDesc), "TS-0")]</c>. Replace these with the story's approved test cases.
8
+ /// </summary>
9
+ public static class ProductsDesc
10
+ {
11
+ /// <summary>The feature's cases, by id.</summary>
12
+ public static readonly IReadOnlyDictionary<string, TestDescription> Cases = new Dictionary<string, TestDescription>
13
+ {
14
+ ["TS-0"] = new("TS-0", "AC-0", "{{STORY_KEY}}", "the service answers the health check",
15
+ ["API_BASE_URL (and API_TOKEN, if the API needs one) set"], ["GET the health endpoint"], "The documented status", ["smoke"]),
16
+ ["TS-1"] = new("TS-1", "AC-1", "{{STORY_KEY}}", "a created product can be read back unchanged", ["No product with this name"],
17
+ ["Create a product from the builder", "Read it by the returned id", "Delete it (only if it was created)"],
18
+ "201 on create; the read returns the same name and price", ["write"]),
19
+ ["TS-2"] = new("TS-2", "AC-1", "{{STORY_KEY}}", "an unknown product id answers not found", ["No product with this id"],
20
+ ["Read a product by an id that doesn't exist"], "404", []),
21
+ };
22
+ }
@@ -0,0 +1,61 @@
1
+ using System.Text.Json;
2
+ using System.Text.Json.Serialization;
3
+ using Automation.Utils;
4
+
5
+ namespace Automation.Resources.TestData;
6
+
7
+ /// <summary>
8
+ /// The suite's test data: values from `testData.json` (paths, expected statuses and values) and builders for data a
9
+ /// test creates (run-unique). Tests and pages read data only through here.
10
+ /// </summary>
11
+ public static class TestData
12
+ {
13
+ private static readonly Lazy<JsonElement> Values = new(Load);
14
+
15
+ /// <summary>Reads `testData.json` (copied next to the test binaries by the project file).</summary>
16
+ /// <returns>The document's root.</returns>
17
+ private static JsonElement Load()
18
+ {
19
+ var path = Path.Combine(AppContext.BaseDirectory, "Resources", "TestData", "testData.json");
20
+ if (!File.Exists(path)) throw new AutomationError("Read", path, "missing (is it copied to the output?)");
21
+ return JsonDocument.Parse(File.ReadAllText(path)).RootElement.Clone();
22
+ }
23
+
24
+ /// <summary>A value from the data file by its dotted path.</summary>
25
+ /// <param name="key">e.g. `signIn.greeting`.</param>
26
+ /// <returns>Its text.</returns>
27
+ /// <exception cref="AutomationError">When the key is missing.</exception>
28
+ public static string Value(string key)
29
+ {
30
+ var node = Values.Value;
31
+ foreach (var part in key.Split('.'))
32
+ {
33
+ if (node.ValueKind != JsonValueKind.Object || !node.TryGetProperty(part, out node))
34
+ throw new AutomationError("Read test data", key, "missing in testData.json");
35
+ }
36
+ return node.ToString();
37
+ }
38
+
39
+ /// <summary>A page's path, relative to <c>BASE_URL</c>.</summary>
40
+ /// <param name="page">e.g. `login`.</param>
41
+ /// <returns>`routes.&lt;page&gt;`.</returns>
42
+ public static string Route(string page) => Value($"routes.{page}");
43
+
44
+ /// <summary>A whole number from the data file, e.g. an expected status.</summary>
45
+ /// <param name="key">e.g. `products.createdStatus`.</param>
46
+ /// <returns>Its value.</returns>
47
+ public static int Number(string key) => int.Parse(Value(key));
48
+ }
49
+
50
+ /// <summary>A product's fields, as the API takes and returns them.</summary>
51
+ /// <param name="Name">The product's name.</param>
52
+ /// <param name="Price">Its price.</param>
53
+ public sealed record Product([property: JsonPropertyName("name")] string Name, [property: JsonPropertyName("price")] decimal Price);
54
+
55
+ /// <summary>Builds valid synthetic products: a new name per call, so tests never share or collide on records.</summary>
56
+ public static class ProductBuilder
57
+ {
58
+ /// <summary>A valid product with a run-unique name; a test changes only the field it is about (`with { Price = 0 }`).</summary>
59
+ /// <returns>The product.</returns>
60
+ public static Product NewProduct() => new(RandomData.UniqueName("Test product"), 9.99m);
61
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "The suite's test data, in one place (read by TestData.cs). Values you give replace the defaults here; expected values come from the requirement or the API's documentation. Secrets are never here: they stay in .env by name.",
3
+ "routes": {
4
+ "health": "{{HEALTH_PATH}}",
5
+ "products": "{{PRODUCTS_PATH}}"
6
+ },
7
+ "health": { "status": {{HEALTH_STATUS}} },
8
+ "products": { "createdStatus": 201, "notFoundStatus": 404, "unknownId": "does-not-exist" }
9
+ }
@@ -0,0 +1,48 @@
1
+ // @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
2
+ using System.Net.Http.Headers;
3
+ using Automation.Config;
4
+ using Automation.Utils;
5
+
6
+ namespace Automation.Services;
7
+
8
+ /// <summary>
9
+ /// One HttpClient for the whole run (a new client per test exhausts sockets): base address and token set once, from
10
+ /// `Config/Env`; failure messages never include headers, which carry the token.
11
+ /// </summary>
12
+ public static class ApiClient
13
+ {
14
+ private static readonly Lazy<HttpClient> Shared = new(Create);
15
+
16
+ /// <summary>Sends a request and logs it (without headers).</summary>
17
+ /// <param name="method">HTTP method.</param>
18
+ /// <param name="path">Path relative to <c>API_BASE_URL</c>, from the test data; a leading slash is removed so a base path is kept.</param>
19
+ /// <param name="content">The request body, or null.</param>
20
+ /// <returns>The response, for the test to assert on.</returns>
21
+ public static async Task<HttpResponseMessage> SendAsync(HttpMethod method, string path, HttpContent? content = null)
22
+ {
23
+ using var request = new HttpRequestMessage(method, path.TrimStart('/')) { Content = content };
24
+ var response = await Shared.Value.SendAsync(request);
25
+ Log.Debug($"{method} {path} -> {(int)response.StatusCode}");
26
+ return response;
27
+ }
28
+
29
+ /// <summary>A failure message without headers (they can carry the token): method, path, status and a short body.</summary>
30
+ /// <param name="response">The response to describe.</param>
31
+ /// <returns>"Call METHOD /path: HTTP n: body".</returns>
32
+ public static async Task<string> DescribeAsync(HttpResponseMessage response)
33
+ {
34
+ var body = await response.Content.ReadAsStringAsync();
35
+ var request = response.RequestMessage;
36
+ return $"Call {request?.Method} {request?.RequestUri?.AbsolutePath}: HTTP {(int)response.StatusCode}: {body[..Math.Min(body.Length, 300)]}";
37
+ }
38
+
39
+ /// <summary>Builds the shared client: base address, JSON accept, timeout and, when set, the bearer token.</summary>
40
+ /// <returns>The client.</returns>
41
+ private static HttpClient Create()
42
+ {
43
+ var client = new HttpClient { BaseAddress = new Uri(Env.BaseUrl() + "/"), Timeout = Flags.Timeout() };
44
+ client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
45
+ if (Env.Token() is { } token) client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
46
+ return client;
47
+ }
48
+ }
@@ -0,0 +1,11 @@
1
+ using Automation.Resources.TestData;
2
+
3
+ namespace Automation.Services;
4
+
5
+ /// <summary>Client for the health endpoint; tests assert on what it returns.</summary>
6
+ public static class HealthApi
7
+ {
8
+ /// <summary>Calls the health endpoint.</summary>
9
+ /// <returns>The response.</returns>
10
+ public static Task<HttpResponseMessage> GetAsync() => ApiClient.SendAsync(HttpMethod.Get, TestData.Route("health"));
11
+ }
@@ -1,7 +1,7 @@
1
1
  using System.Net.Http.Json;
2
- using Automation.Data;
2
+ using Automation.Resources.TestData;
3
3
 
4
- namespace Automation.Api;
4
+ namespace Automation.Services;
5
5
 
6
6
  /// <summary>
7
7
  /// Calls for one resource, products: each method is one request; tests assert on what comes back.
@@ -9,19 +9,22 @@ namespace Automation.Api;
9
9
  /// </summary>
10
10
  public static class ProductsApi
11
11
  {
12
+ /// <summary>The resource's path, from the test data.</summary>
13
+ private static string ResourcePath => TestData.Route("products");
14
+
12
15
  /// <summary>Creates a product.</summary>
13
16
  /// <param name="product">The product's fields, from the builder.</param>
14
17
  /// <returns>The response (201 with the new product).</returns>
15
18
  public static Task<HttpResponseMessage> CreateAsync(Product product) =>
16
- ApiClient.PostAsync(ProductsData.Path, JsonContent.Create(product));
19
+ ApiClient.SendAsync(HttpMethod.Post, ResourcePath, JsonContent.Create(product));
17
20
 
18
21
  /// <summary>Reads one product.</summary>
19
22
  /// <param name="id">The product's id.</param>
20
23
  /// <returns>The response.</returns>
21
- public static Task<HttpResponseMessage> GetAsync(string id) => ApiClient.GetAsync($"{ProductsData.Path}/{id}");
24
+ public static Task<HttpResponseMessage> GetAsync(string id) => ApiClient.SendAsync(HttpMethod.Get, $"{ResourcePath}/{id}");
22
25
 
23
26
  /// <summary>Deletes one product (cleanup).</summary>
24
27
  /// <param name="id">The product's id.</param>
25
28
  /// <returns>The response.</returns>
26
- public static Task<HttpResponseMessage> DeleteAsync(string id) => ApiClient.DeleteAsync($"{ProductsData.Path}/{id}");
29
+ public static Task<HttpResponseMessage> DeleteAsync(string id) => ApiClient.SendAsync(HttpMethod.Delete, $"{ResourcePath}/{id}");
27
30
  }
@@ -0,0 +1,61 @@
1
+ using System.Net.Http.Json;
2
+ using System.Text.Json.Serialization;
3
+ using Automation.Fixtures;
4
+ using Automation.Resources.Desc;
5
+ using Automation.Resources.TestData;
6
+ using Automation.Services;
7
+ using Automation.Utils;
8
+ using NUnit.Framework;
9
+
10
+ namespace Automation.Tests.Api;
11
+
12
+ /// <summary>Health check and products: each test takes its title and categories from `Resources/Desc/ProductsDesc`.</summary>
13
+ public class ProductsTests : BaseTest
14
+ {
15
+ /// <summary>The fields of a product the API returns, including its id.</summary>
16
+ /// <param name="Id">The product's id.</param>
17
+ /// <param name="Name">Its name.</param>
18
+ /// <param name="Price">Its price.</param>
19
+ private sealed record StoredProduct([property: JsonPropertyName("id")] string Id, [property: JsonPropertyName("name")] string Name, [property: JsonPropertyName("price")] decimal Price);
20
+
21
+ /// <summary>TS-0 (title and categories from the description).</summary>
22
+ /// <returns>The test's task.</returns>
23
+ [Test, Case(typeof(ProductsDesc), "TS-0")]
24
+ public async Task ServiceAnswersHealthCheck()
25
+ {
26
+ using var response = await HealthApi.GetAsync();
27
+ Assert.That((int)response.StatusCode, Is.EqualTo(TestData.Number("health.status")), await ApiClient.DescribeAsync(response));
28
+ }
29
+
30
+ /// <summary>TS-1 (title and categories from the description).</summary>
31
+ /// <returns>The test's task.</returns>
32
+ [Test, Case(typeof(ProductsDesc), "TS-1")]
33
+ public async Task CreatedProductCanBeReadBack()
34
+ {
35
+ var product = ProductBuilder.NewProduct();
36
+ using var created = await ProductsApi.CreateAsync(product);
37
+ Assert.That((int)created.StatusCode, Is.EqualTo(TestData.Number("products.createdStatus")), await ApiClient.DescribeAsync(created));
38
+ var id = (await created.Content.ReadFromJsonAsync<StoredProduct>())!.Id;
39
+ try
40
+ {
41
+ using var read = await ProductsApi.GetAsync(id);
42
+ Assert.That((int)read.StatusCode, Is.EqualTo(200), await ApiClient.DescribeAsync(read));
43
+ var stored = await read.Content.ReadFromJsonAsync<StoredProduct>();
44
+ Assert.That(new Product(stored!.Name, stored.Price), Is.EqualTo(product));
45
+ }
46
+ finally
47
+ {
48
+ // Teardown runs only when the create above succeeded.
49
+ using var _ = await ProductsApi.DeleteAsync(id);
50
+ }
51
+ }
52
+
53
+ /// <summary>TS-2 (title and categories from the description).</summary>
54
+ /// <returns>The test's task.</returns>
55
+ [Test, Case(typeof(ProductsDesc), "TS-2")]
56
+ public async Task UnknownProductAnswersNotFound()
57
+ {
58
+ using var response = await ProductsApi.GetAsync(TestData.Value("products.unknownId"));
59
+ Assert.That((int)response.StatusCode, Is.EqualTo(TestData.Number("products.notFoundStatus")), await ApiClient.DescribeAsync(response));
60
+ }
61
+ }
@@ -0,0 +1,40 @@
1
+ using System.Text.RegularExpressions;
2
+ using Automation.Utils;
3
+ using NUnit.Framework;
4
+
5
+ namespace Automation.Tests.Unit;
6
+
7
+ /// <summary>Unit tests of the suite's own helpers: no browser and no app, so they run in seconds (`--filter TestCategory=unit`).</summary>
8
+ [Category("unit")]
9
+ public class UtilsTests
10
+ {
11
+ /// <summary>UniqueSuffix gives a different value each call.</summary>
12
+ [Test]
13
+ public void UniqueSuffixDiffersEachCall() =>
14
+ Assert.That(Enumerable.Range(0, 50).Select(_ => RandomData.UniqueSuffix()).Distinct().Count(), Is.EqualTo(50));
15
+
16
+ /// <summary>UniqueEmail keeps the base address and adds a tag.</summary>
17
+ [Test]
18
+ public void UniqueEmailKeepsBaseAndAddsTag() =>
19
+ Assert.That(Regex.IsMatch(RandomData.UniqueEmail("qa.team@company.test"), @"^qa\.team\+[0-9a-f]{6}@company\.test$"), Is.True);
20
+
21
+ /// <summary>Redact masks the values of secret environment variables.</summary>
22
+ [Test]
23
+ public void RedactMasksSecretEnvironmentValues()
24
+ {
25
+ Environment.SetEnvironmentVariable("UNIT_TEST_PASSWORD", "pa55-word-xyz");
26
+ try
27
+ {
28
+ Assert.That(Redact.Mask("login with pa55-word-xyz failed"), Is.EqualTo("login with *** failed"));
29
+ }
30
+ finally
31
+ {
32
+ Environment.SetEnvironmentVariable("UNIT_TEST_PASSWORD", null);
33
+ }
34
+ }
35
+
36
+ /// <summary>AddDays and IsoDate compute dates from a fixed day.</summary>
37
+ [Test]
38
+ public void AddDaysAndIsoDateFromAFixedDay() =>
39
+ Assert.That(Dates.IsoDate(Dates.AddDays(1, new DateOnly(2026, 1, 31))), Is.EqualTo("2026-02-01"));
40
+ }