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

Working integration tests #5732

Merged
merged 15 commits into from
Oct 21, 2019
Merged

Conversation

aldeed
Copy link
Contributor

@aldeed aldeed commented Oct 21, 2019

Impact: minor
Type: feature

Issue

Jest integration tests not working.

Solution

Tests now work. The main problem was that the require extension didn't work. That API is technically deprecated anyway, so we now have a different solution for importing from .graphql files: a new importAsString function in the api-utils pkg.

After integration tests began working, they identified a bug in the primaryShopId query, which is also fixed here. There were various other issues with the tests themselves and with the TestApp class, just because of the other changes between 2.x and 3.0.0. Those are resolved.

Testing

reactioncommerce/api-utils#4 will need to be merged and released, and then api-utils package bumped in this repo before you can test.

Verify all tests pass on CI.
Verify the API starts and works as expected.

Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
@kieckhafer kieckhafer self-requested a review October 21, 2019 16:07
Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good, tests pass, however it seems like there is some issue that's not finishing up the tests, so it stays running in CI for a long time.

Continuous_Integration_and_Deployment

It's been "running" for about 10 min after the tests have already passed:
Working_integration_tests_by_aldeed_·_Pull_Request__5732_·_reactioncommerce_reaction

EDIT: and now that it's been over 10 minutes, they have failed:
Continuous_Integration_and_Deployment

@aldeed aldeed dismissed kieckhafer’s stale review October 21, 2019 17:45

CI issues resolved

@aldeed aldeed merged commit 7da0972 into release-3.0.0 Oct 21, 2019
@aldeed aldeed deleted the test-aldeed-fix-integration-tests branch October 21, 2019 17:46
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.

2 participants