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

Create test projects instead of asserting their properties #641

Merged
merged 2 commits into from
Aug 15, 2018

Conversation

raphinesse
Copy link
Contributor

With this PR, the test fixtures in pkgJson-restore.spec are created from a base fixture in the tests that need them.

Apart from better flexibility to change (will need this for performance tuning later) and less fixture files, this approach has the benefit that the test environment is defined in the tests themselves, making them easier to understand.

@raphinesse raphinesse changed the title Create test projects instead of asserting them Create test projects instead of asserting their properties Aug 15, 2018
Copy link
Member

@dpogue dpogue left a comment

Choose a reason for hiding this comment

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

👍 That makes it way easier to understand the state of the project for each test!

@raphinesse raphinesse mentioned this pull request Aug 15, 2018
7 tasks
@raphinesse
Copy link
Contributor Author

Minor formatting changes and added TODO referencing apache/cordova-common#38 and apache/cordova-common#39.

@raphinesse raphinesse merged commit 7474c89 into apache:master Aug 15, 2018
@raphinesse
Copy link
Contributor Author

Merged because CI failure was unrelated

@raphinesse raphinesse deleted the create-not-assert branch August 15, 2018 13:57
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.

None yet

2 participants