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

Testing: Fix and update block fixture regeneration #6715

Merged
merged 2 commits into from
May 12, 2018
Merged

Conversation

aduth
Copy link
Member

@aduth aduth commented May 11, 2018

Regressions of: #6311, #6351

In master, running npm run fixtures:regenerate has the result of:

  • Not actually regenerating anything, because the current fixtures aren't first removed since the move of blocks/library to core-blocks
  • Introducing an unintended change to server-registered.json because the attributes of Latest Post block have been updated

Both of these have been resolved here.

Testing instructions:

Verify that npm run fixtures:clean actually removes files.

Verify that npm run fixtures:regenerate introduces no changes.

@aduth aduth added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label May 11, 2018
@@ -130,7 +130,7 @@
"test": "npm run lint && npm run test-unit",
"test-php": "npm run lint-php && npm run test-unit-php",
"ci": "concurrently \"npm run lint && npm run build\" \"npm run test-unit:coverage-ci\"",
"fixtures:clean": "rimraf \"blocks/test/fixtures/*.+(json|serialized.html)\"",
"fixtures:clean": "rimraf \"core-blocks/test/fixtures/*.+(json|serialized.html)\"",
Copy link
Member

Choose a reason for hiding this comment

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

I thought I fixed it in one of the PRs when having an issue with those fixtures.

@gziolo gziolo merged commit b5e6e75 into master May 12, 2018
@gziolo gziolo deleted the fix/fixtures-clean branch May 12, 2018 07:34
@mtias mtias added this to the 2.9 milestone May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants