Automated Tests in Windmill
What are the current best practices for end to end testing of flows?
When I check https://www.windmill.dev/docs/flows/test_flows it only explains the manual approach. AI points to these docs as well. I would like to have a programmatic way so that flows can be tested in CI/CD pipelines. Mocking support would be important as well.
Is there any way of doing that?
Testing flows | Windmill
On top of its integrated editors (scripts, flows, apps), Windmill allows users to see and test what they are building directly from the editor, even before deployment.
5 Replies
Hi @Alper , the recommended way to do it in CI/CD is to setup a local windmill in CD/CD, wmill sync push, and then run the desired flows and mock the APIs at the docker network level
okay that would work. it's quite heavy though, are there any plans for a more lightweight strategy?
With branchSpecificItems that just landed you could make a ci branch whose only difference is that it points to mock resources
Very nice
Interesting! First time hearing of this