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

Feat/fixture generator #1484

Merged
merged 68 commits into from
Dec 3, 2018
Merged

Feat/fixture generator #1484

merged 68 commits into from
Dec 3, 2018

Conversation

L0wry
Copy link
Contributor

@L0wry L0wry commented Nov 14, 2018

And so begins our journey into creating type-safe fixtures for articles

This PR creates a new package called fixture gen and migrates away from the provider test tool package.
The fixture gen package has a responsibility of providing correct fixtures to any client (such as showcases, cypress)
It uses schema introspection and graphqlgen to create types based on the schema.

This means that whenever the schema is updated the types will break and be very obvious as to why.

As part of this, we have refactored an existing article cypress test.
unfortunately, this has broken the other cypress tests that @nehasri89 created. In the interim, I have switched them off and tools have another ticket in this sprint to pick up the work to refactor.

Copy link
Contributor

@nathggns nathggns left a comment

Choose a reason for hiding this comment

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

Don't feel particularly able to approve/reject this, just a couple of queries / comments.

packages/fixture-generator/index.ts Outdated Show resolved Hide resolved
packages/fixture-generator/src/mock-article.ts Outdated Show resolved Hide resolved
packages/fixture-generator/src/types.ts Show resolved Hide resolved
packages/fixture-generator/src/types.ts Show resolved Hide resolved
cypress.json Show resolved Hide resolved
packages/fixture-generator/README.md Outdated Show resolved Hide resolved
@kaliabadi
Copy link
Contributor

🥇

@L0wry L0wry merged commit 5510f1d into master Dec 3, 2018
@L0wry L0wry deleted the feat/fixtureGenerator branch December 3, 2018 16:40
@Belema
Copy link
Contributor

Belema commented Dec 11, 2018

This PR has turned off most of our e2e tests. It should not have been merged.

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.

10 participants