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

Build contract before integration tests #2014

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

agostbiro
Copy link
Contributor

The integration tests depend on a built artifact, so they'll fail unless the build:contract command is ran manually before running integration tests.

It's also error-prone as users might not realize that they have to rebuild manually before running integration tests, and they might get confused.

Incidentally this change also fixes the e2e tests that were failing in master locally on a fresh checkout of the repository.

Branched out from #2013, otherwise tests are failing.

The integration tests depend on a built artifact, so they'll fail
unless the `build:contract` command is ran manually before running
integration tests.

It's also error-prone as users might not realize that they have to
rebuild manually before running integration tests, and they might get
confused.

Incidentally this change also fixes the e2e tests that were failing
in master locally on a fresh checkout of the repository.

Branched out from near#2013, otherwise tests are failing.
@frol
Copy link
Collaborator

frol commented Jun 27, 2023

Re-opening this PR to trigger CI

@frol frol closed this Jun 27, 2023
@frol frol reopened this Jun 27, 2023
@frol frol merged commit 95665c1 into near:master Jun 27, 2023
24 checks passed
@agostbiro agostbiro deleted the build-contract-before-integration-tests branch June 28, 2023 12:38
agostbiro added a commit to agostbiro/hello-near-rust that referenced this pull request Jun 28, 2023
The `test:integration` task depends on the `build:contract` task, but
it's currently ran as part of the `test` task so if a user just
runs `test:integration` it may fail or run with an outdated build.

The same change was made in `create-near-app`:
near/create-near-app#2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants