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

Framework: Switch menus tests to single runner #4197

Merged
merged 9 commits into from
Mar 22, 2016

Conversation

seear
Copy link
Contributor

@seear seear commented Mar 21, 2016

This went mostly smoothly. Had to introduce the use of filesystem mocks into the item-options test to avoid double callback! hangs.

useSandbox();

const menuDataPath = path.dirname( require.resolve( 'lib/menu-data' ) );
useFilesystemMocks( menuDataPath + '/test' );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technique here for picking up filesystem mocks from elsewhere is convoluted, so maybe we can add something into the helper for this if it becomes common.

Copy link
Contributor

Choose a reason for hiding this comment

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

i think this is actually OK. I like that it requires a bit of gymnastics to do something odd.

@seear seear added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Mar 21, 2016
@seear
Copy link
Contributor Author

seear commented Mar 21, 2016

/cc @gziolo, @blowery

@blowery
Copy link
Contributor

blowery commented Mar 21, 2016

looks good! 🚢

@blowery blowery added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 21, 2016
@gziolo
Copy link
Member

gziolo commented Mar 22, 2016

I added one tiny change. We started to name all test files after file under test. We already have test folder, and we want to keep only test files directly in test folder :)
Thanks for porting more tests 👍

@gziolo gziolo added this to the Framework: Single test runner milestone Mar 22, 2016
gziolo added a commit that referenced this pull request Mar 22, 2016
Framework: Switch menus tests to single runner
@gziolo gziolo merged commit b3bc184 into master Mar 22, 2016
@gziolo gziolo deleted the update/menu-tests-single-runner branch March 22, 2016 09:46
@blowery
Copy link
Contributor

blowery commented Mar 22, 2016

Thanks @gziolo I missed that. Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants