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

[test] Cleanup skipped tests #23732

Merged
merged 2 commits into from
Nov 27, 2020
Merged

[test] Cleanup skipped tests #23732

merged 2 commits into from
Nov 27, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Nov 26, 2020

  1. Remove unused skip conditions
    Became obsolete with [core] Ship modern bundle #22814
  2. [test] Prefer skip() over return
    This can be abused up until adding a test becomes a balancing act. For example, in SwipeableDrawer where we return in the middle of the test file (not touching that test for now because it seems too brittle). This is the old problem of "optimizing for the current test suite". A test suite needs to scale and every addition needs to start from a clean slate. And a change to existing tests should not affect existing one.
    By using skip() we can also better monitor which tests are skipped across environments. This was only possible implicitly. Now we have an explicit signal in test runners.

@eps1lon eps1lon added the test label Nov 26, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Nov 26, 2020

No bundle size changes

Generated by 🚫 dangerJS against f9a91dc

@eps1lon eps1lon marked this pull request as ready for review November 26, 2020 14:06
@eps1lon eps1lon merged commit f232781 into mui:next Nov 27, 2020
@eps1lon eps1lon deleted the test/edg-vs-edge branch November 27, 2020 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants