You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ποΈ There is no file exported to the host machine when the execution command fails.Β #8275
We are trying to run the UI Playwright tests and export the test results to the host machine. This works fine when all tests pass. However, when there is a test failure, the container exits with error code 2 and does not export the test report.
Activity
jedevc commentedon Sep 3, 2024
You can see how to handle this case in the Dagger cookbook here: https://docs.dagger.io/cookbook/#continue-using-a-container-after-command-execution-fails.
Essentially, you can start a shell, like this
WithExec([]string{"sh", "-c", "npx playwright test || true"}). Then you can continue even on failure.There are ongoing plans to improve this, however, this isn't completed yet.
GeitRavi commentedon Sep 11, 2024
Thanks for response