forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate the mobile React Native testsuite with the main Gutenberg b…
…uild (WordPress#9883) * Install Yarn as part of the local setup * Add scripts to run the mobile testsuite The mobile code is assumed to be in the `gutenberg-mobile` subfolder. * Add the native mobile app repo as a submodule * Run the mobile testsuite as Travis jobs * Ignore mobile subfolder when linting The mobile project has its own lint rules and until the two projects can work off the same rules the main Gutenberg project needs to ignore it. * Ignore the mobile subfolder to run Jest tests The mobile project still has Gutenberg as its own git submodule and so, many packages can be found in two places. Jest tests need to ignore the occurance of this second gutenberg sourcetree instance. * yarn install shouldn't be ran as part of the test script Instead, run `yarn install` earlier or in the same manner as `npm install`. * Run the mobile testsuite as part of the `test` script * yarn install inside mobile when in Travis * Ignore the mobile subfolder to run e2e Jest tests * Add some use and debugging instructions for mobile tests * Fix typo * Yarn as a dev dep and auto fetch and install mobile code * Yarn is installed locally as a development dependency * The mobile submodule is updated in preinstall * The mobile packages are installed in preinstall as well * Yarn is executed by providing the working (sub)directory as a parameter * No need to install yarn globally in Travis * No need for npx. yarn is available to npm in scripts * No need for npx in postinstall either * Fix copy&paster error. Only update submodule in preinstall * Run the mobile tests in parallel for the `test` script * Add the mobile submodule to coverage ignore patterns
- Loading branch information
Showing
10 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules | |
test/e2e/test-plugins | ||
vendor | ||
packages/block-serialization-spec-parser/index.js | ||
gutenberg-mobile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "gutenberg-mobile"] | ||
path = gutenberg-mobile | ||
url = ../../wordpress-mobile/gutenberg-mobile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gutenberg-mobile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gutenberg-mobile
added at
e6d6ed
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"rootDir": "../../", | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"<rootDir>/gutenberg-mobile/" | ||
], | ||
"preset": "jest-puppeteer", | ||
"setupTestFrameworkScriptFile": "<rootDir>/test/e2e/support/setup-test-framework.js", | ||
"testMatch": [ | ||
"<rootDir>/test/e2e/specs/**/(*.)test.js" | ||
], | ||
"transform": { | ||
"^.+\\.jsx?$": "<rootDir>/node_modules/babel-jest" | ||
} | ||
}, | ||
"modulePathIgnorePatterns": [ | ||
"<rootDir>/gutenberg-mobile/" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters