-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Move config file for unit tests to its own subfolder #3203
Conversation
@@ -94,29 +94,28 @@ | |||
"(blocks|components|date|editor|element|i18n|utils)/**/*.js" | |||
], | |||
"coveragePathIgnorePatterns": [ | |||
"<rootDir>/[^/]+/build/index.js", | |||
".*/story/[^/]+.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see any /story/
subfolders inside folders which are scanned when generating code coverage. That's why removed this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine this is left-over from when we used React Storybook. Thinking the newer docutron
directory should be similarly ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
‘docutron’ folder is already ignored with the current setup, thanks for clarifying 👍
Codecov Report
@@ Coverage Diff @@
## master #3203 +/- ##
==========================================
+ Coverage 31.61% 33.61% +1.99%
==========================================
Files 221 221
Lines 6316 6842 +526
Branches 1122 1289 +167
==========================================
+ Hits 1997 2300 +303
- Misses 3631 3796 +165
- Partials 688 746 +58
Continue to review full report at Codecov.
|
@@ -94,29 +94,28 @@ | |||
"(blocks|components|date|editor|element|i18n|utils)/**/*.js" | |||
], | |||
"coveragePathIgnorePatterns": [ | |||
"<rootDir>/[^/]+/build/index.js", | |||
".*/story/[^/]+.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine this is left-over from when we used React Storybook. Thinking the newer docutron
directory should be similarly ignored.
Description
This PR moves configuration file to
test/unit
subfolder to sync with the upcoming changes in #3069 which introducestest/e2e
subfolder for end-to-end testing solution.How Has This Been Tested?
Manually executed all test unit commands:
npm run test-unit
npm run test-unit:coverage
npm run test-unit:watch
Travis should remain green.