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: Move config file for unit tests to its own subfolder #3203

Merged
merged 1 commit into from
Oct 31, 2017

Conversation

gziolo
Copy link
Member

@gziolo gziolo commented Oct 27, 2017

Description

This PR moves configuration file to test/unit subfolder to sync with the upcoming changes in #3069 which introduces test/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.

@gziolo gziolo added Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Oct 27, 2017
@gziolo gziolo self-assigned this Oct 27, 2017
@gziolo gziolo requested a review from youknowriad October 27, 2017 13:54
@@ -94,29 +94,28 @@
"(blocks|components|date|editor|element|i18n|utils)/**/*.js"
],
"coveragePathIgnorePatterns": [
"<rootDir>/[^/]+/build/index.js",
".*/story/[^/]+.js"
Copy link
Member Author

@gziolo gziolo Oct 27, 2017

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.

Copy link
Member

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.

Copy link
Member Author

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
Copy link

codecov bot commented Oct 27, 2017

Codecov Report

Merging #3203 into master will increase coverage by 1.99%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
components/popover/index.js 83.53% <0%> (-0.31%) ⬇️
editor/writing-flow/index.js 0% <0%> (ø) ⬆️
components/sandbox/index.js 0% <0%> (ø) ⬆️
editor/document-title/index.js 0% <0%> (ø) ⬆️
blocks/library/image/block.js 0% <0%> (ø) ⬆️
editor/block-toolbar/index.js 0% <0%> (ø) ⬆️
editor/modes/visual-editor/index.js 0% <0%> (ø) ⬆️
editor/modes/visual-editor/block.js 0% <0%> (ø) ⬆️
editor/modes/visual-editor/block-list.js 0% <0%> (ø) ⬆️
editor/selectors.js 95.54% <0%> (+0.32%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15e8b96...17ea99f. Read the comment docs.

@@ -94,29 +94,28 @@
"(blocks|components|date|editor|element|i18n|utils)/**/*.js"
],
"coveragePathIgnorePatterns": [
"<rootDir>/[^/]+/build/index.js",
".*/story/[^/]+.js"
Copy link
Member

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.

@gziolo gziolo merged commit 2f68cee into master Oct 31, 2017
@youknowriad youknowriad deleted the update/unit-test-folder branch October 31, 2017 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript [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.

2 participants