Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make module_test runner & example handle failures correctly #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikelikespie
Copy link

The existing runner.js wouldn't exit w/ a non-zero code if either a test fails, or cypress.run threw an exception. This will handle both cases

This also exposes a bug on linux where if you run //cypress/tests/module_test:module_test on linux, it will fail with

Error: EROFS: read-only file system, open '/home/ubuntu/.cache/bazel/_bazel_ubuntu/3c3b515e9016ce6d22b6ff24560854f0/execroot/aspect_rules_cypress/bazel-out/k8-fastbuild/bin/external/cypress_linux-x64/binary_state.json'

which wasn't being caught before.

Fixes #44


Type of change

  • Bug fix (change which fixes an issue)
  • Documentation (updates to documentation or READMEs)

Test plan

  • Covered by existing test cases
  • New test cases added
  • Manual testing; please provide instructions so we can reproduce:

The existing runner.js wouldn't exit w/ a non-zero code if either a test
fails, or cypress.run threw an exception. This will handle both cases

Fixes aspect-build#44
@CLAassistant
Copy link

CLAassistant commented Jul 25, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[Bug]: Example for cypress_module_test gives false positives.
2 participants