Tests
Build reliable workflows by creating automated tests that validate your outputs against specific criteria. Tests help ensure your workflows perform consistently across different inputs and edge cases.
Overview
Tests validate workflow outputs automatically by checking them against a list of criteria you define. When you create a test, Lleverage saves the inputs from your run as a fixture and can replay them to check whether your workflow still meets your requirements after making changes.
Key features:
Automatic input capture from workflow runs
Plain-language criteria, checked individually
Passed / Failed results with a confidence indicator
An AI evaluation model of your choice judges the output
Tests can be generated from end-user feedback
Run your whole test suite in one go
How to Access Tests
Open the run panel from the top right corner of the canvas
Select the Test tab
Your test suite appears, with options to create your first test if none exist yet
How to Create a Test from a Run
After running your workflow, click Create Test on the run output
The test creation form appears pre-filled with your run data
Choose the variable to evaluate: pick which workflow output the test should check
Write your criteria: add one or more plain-language statements that should be true about the output, for example "The extracted text contains a person's name". Each criterion can be edited, added, or removed individually.
Pick an evaluation model: choose which AI model judges whether the output meets your criteria
Save the test to add it to your suite, or save and run it straight away
💡 Tip: Tests automatically capture and store the inputs from your original run as a fixture, so you can replay the exact same scenario as often as you like.
How to Create Tests from Feedback
Open the Feedback tab in the run panel
Find a piece of end-user feedback worth turning into a regression check
Click Create Test on the feedback item
The test is set up from that session's inputs, ready for you to refine the criteria
💡 Feedback-driven tests are a quick way to make sure a problem an end user hit never comes back.
Understanding Test Results
Passed: the output met your criteria
Failed: one or more criteria were not met
Confidence indicator: alongside the result, a Low, Medium, or High confidence label shows how certain the evaluation was. Low confidence usually means the criteria are ambiguous or the output was unclear, so consider tightening the wording.
Per-criterion detail: each criterion is judged individually, so you can see exactly which ones passed or failed
View the session: open the session behind a test result to inspect the full run that produced the output
How to Work with Fixtures
A test's fixture is the saved set of inputs it replays.
Open a test and edit its fixture to change the inputs it runs with
Preview the fixture to check what the test will actually send before running it
To test a different scenario, duplicate the test and give the copy its own fixture
How to Manage Existing Tests
To run a test again:
Select the test you want to re-run
Click Run to execute it with its stored fixture
Compare results to see if your workflow changes improved things
To run all tests:
Use the run all option at the top of your test suite
Every test executes against the current workflow
Review the pass and fail counts to spot regressions
To edit a test:
Select the test you want to modify
Update the criteria, the variable being evaluated, the evaluation model, or the fixture
Save your changes
To delete a test:
Select the test you want to remove
Click Delete and confirm
How to Build Comprehensive Test Suites
Test different input types: Create tests for the various data formats your workflow might receive
Test edge cases: Include unusual or extreme inputs that might break your workflow
Test business logic: Validate that your workflow handles different business scenarios correctly
Run all tests together: Execute your entire suite after making changes to catch regressions early
💡 Best Practice: For complex business processes, create multiple tests with different fixtures to ensure your workflow handles all possible scenarios reliably.
Tests are essential for maintaining workflow reliability, especially when making changes or handling complex business processes with varied input types.
Last updated
Was this helpful?