Best Practices
Last updated
Was this helpful?
Last updated
Was this helpful?
Save your app create
and service create
commands in a script. This will be useful for updating the Scaffold in the future. See:
Check in the app and all of its services into your version control such as a git repo.
First, start by running the "record" workflow. This allows you to check if all your scaffold configuration and services can run. Create scenarios and record requests as needed
Next, run the "mock" workflow. This allows you to check if the previously recorded requests work for mocking. Here is where you want to run your end-to-end tests which can use the mocks.
Finally, add your end-to-end tests to the entrypoint
service as part of its Docker Compose, then run the "test" workflow locally. Here you should run your end-to-end tests in its headless mode if available.
This lets you check if your tests will work using all the recorded mocks and sets you up to integrate it with your CI pipelines and test environments.
Once the "test" workflow works locally, you can use that same workflow in your CI pipelines.