Repository navigation
feat(platform): add tests from a path and show what they cover - #4813
Merged
Merged
Conversation
The Paths list's clause chips truncated at the list's width, so a clause naming the tests that go down a path lost its end. A chip now wraps its words onto a second line; one line still reads as a pill.
Add test opens a menu when the automation has more to start from: a blank test, a test from the bound trigger's input, or a test for a possible path no test goes down yet, named after the path, with what the path needs in its description. Once tests have run, the line above the list says how many paths they cover and opens the canvas's Possible paths, where each path names the tests that go down it or says it is not tested.
The testing page describes Add test's menu and the coverage line, with a new screenshot of the possible paths after Run all. The tests demo gains a Review step for orders of a thousand or more, which neither test reaches, so the shot shows one of two paths covered; the two earlier tests shots are taken again with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Tests start from where the automation already is, and say which of its paths they cover (P5 S10b2). Builds on the Setup form of #4812.
Add test
Coverage
FlowPathList,@tale/ui). One line still reads as a pill.Docs and manual
automation-test-coverage).automation-testsandautomation-test-setupare recaptured with it.AUTO-F172,AUTO-F173, and a reference row for the automated coverage.Verification (local)
Platform
tsc; oxlint on the changed files and the automations, routes and engine trees.The whole server and PII projects: 87,723 of 87,724 pass. The one red,
tests/guards/automation-legacy-agent-flow.test.ts, was red onmaintoo; fix(cli): repair merge-group checks #4809 has since updated its pinned hash. This branch touches neither file.The whole platform UI suite: 7,526 of 7,526. Automations browser tests: 93 of 93.
@tale/uiunit (4,094) and browser (223, incl. the flow components),services/docs(709) andservices/ui-docs(106) tests,lint:links,lint:manual,knip, format.New tests:
coverage.test.ts);paths.test.ts);automation-tests-panel.test.tsx);automation-editor.test.tsx).Live in Chromium on a local stack (a weekly digest with a conditional Publish step):
The capture pipeline's run on Order discounts: after Run all, Path 2 (Review skipped) reads "Tested by Small order pays full price and Big order gets 10% off", now on two lines, and Path 1 "Not tested".