-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
ci: fixed detox tests. #1446
Merged
Merged
ci: fixed detox tests. #1446
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
104e4c1
build: pin specific expo version.
zhyd1997 c2e8d11
test: remove listener.
zhyd1997 78dbdfa
test: pass empty listener.
zhyd1997 96bf14e
Merge branch 'jhipster:main' into ci/ticket-889-1700974455106
zhyd1997 200440c
test: jest mock expo.
zhyd1997 2948cfd
ci: updated config.
zhyd1997 db086d9
fix: get IOS_DEVICE_NAME from new detox config.
zhyd1997 051de88
e2e: removed outdated test enviroment config.
zhyd1997 ff330f4
fix: added sb config in metro.config.js.ejs
zhyd1997 a88adac
Merge branch 'main' into ci/ticket-889-1700974455106
zhyd1997 a5ebc51
Merge branch 'main' into ci/ticket-889-1700974455106
zhyd1997 dea496a
e2e: updated ios device to iPhone 15.
zhyd1997 dcaa9a2
fix: rewrite reloadApp.
zhyd1997 0d7fa2d
e2e: use latest expo go sdk.
zhyd1997 dadd92e
e2e: use iPhone 14 as ios simulator.
zhyd1997 31cc211
e2e: disable synchronization and close developer menu.
zhyd1997 1597428
ci: added circle ci config for OAuth app e2e.
zhyd1997 9c2590f
fix: removed expo-detox-hook deps.
zhyd1997 0ed0dc1
e2e: bypass save password prompt.
zhyd1997 7433646
e2e: reload app with new instance.
zhyd1997 b50a2ac
fix: import HeaderBackButton from '@react-navigation/elements'
zhyd1997 e5a4592
ci: removed circle ci integration.
zhyd1997 02fe277
try to change abi version
mshima e465372
Update utils.js.ejs
mshima d89acdd
Merge branch 'main' into ci/ticket-889-1700974455106
zhyd1997 4bd9c03
e2e: ignore failing tests.
zhyd1997 ddff361
e2e: skip failing tests.
zhyd1997 1853a4e
Merge branch 'main' into ci/ticket-889-1700974455106
zhyd1997 fde2c17
e2e: enabled login screen test.
zhyd1997 4175235
e2e: enabled setting screen test.
zhyd1997 2fea726
ci: setup Xcode 15.
zhyd1997 0a60cc6
e2e: upgraded simulator from iPhone 14 with iPhone 15.
zhyd1997 563748b
ci: setup JwtHealthPointsApp circle ci config.
zhyd1997 ecc4e79
e2e: enabled change password test.
zhyd1997 51ed7e4
e2e: wait 2s to open drawer. (#7)
zhyd1997 fb9b3dd
e2e: enabled chat screen test. (#9)
zhyd1997 e034d30
Merge branch 'main' into ci/ticket-889-1700974455106
mshima e41073c
Merge branch 'main' into ci/ticket-889-1700974455106
zhyd1997 df1dd43
bump react-native
mshima 5133f0e
disable change passa
mshima 03d824c
add iOS summary for ci auto-merge requirement
mshima File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. | ||
# See: https://circleci.com/docs/configuration-reference | ||
version: 2.1 | ||
|
||
orbs: | ||
# The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize | ||
# Orbs reduce the amount of configuration required for common tasks. | ||
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node | ||
node: circleci/node@5.1.1 | ||
macos: circleci/macos@2 | ||
|
||
jobs: | ||
# Below is the definition of your job to build and test your app, you can rename and customize it as you want. | ||
generate: | ||
# These next lines define a Docker executor: https://circleci.com/docs/executor-types/ | ||
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. | ||
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node | ||
macos: | ||
xcode: 15.1.0 | ||
environment: | ||
GITHUB_WORKSPACE: '.' | ||
JHI_REACT_NATIVE_APP_NAME: 'JwtHealthPointsApp' | ||
JHI_AUTH_TYPE: 'jwt' | ||
JHI_DTO: 'false' | ||
JHIPSTER_VERSION: 7 | ||
JHI_ENTITY_JDL: 'entities-21points.jdl' | ||
SCRIPT_DIR: ./test/scripts | ||
PLATFORM: ios | ||
JHI_RECORD_VIDEO: ${{ github.event.inputs.recordVideo || 'false' }} | ||
JHI_SCREENSHOTS: ${{ github.event.inputs.screenshots || 'false' }} | ||
# Then run your tests! | ||
# CircleCI will report the results back to your VCS provider. | ||
steps: | ||
# Checkout the code as the first step. | ||
- checkout | ||
- node/install: | ||
node-version: '16' | ||
- run: node --version | ||
- run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit | ||
- run: | ||
name: Install Homebrew | ||
command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
- run: | ||
name: Verify Homebrew installation | ||
command: brew --version && brew update | ||
# - run: | ||
# name: Install Java 11 | ||
# command: brew install java11 && sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk | ||
# - run: | ||
# name: Verify Java Version | ||
# command: java --version | ||
- run: | ||
name: 'TOOLS: installing Detox and its dependencies' | ||
command: $SCRIPT_DIR/install-detox.sh | ||
- run: | ||
name: Config git variables | ||
command: $SCRIPT_DIR/git-config.sh | ||
- run: | ||
name: 'TOOLS: install node dependencies' | ||
command: $SCRIPT_DIR/install-node-dependencies.sh | ||
# - node/install-packages: | ||
# # If you are using yarn, change the line below from "npm" to "yarn" | ||
# pkg-manager: npm | ||
- run: | ||
name: 'TOOLS: display tools' | ||
command: $SCRIPT_DIR/display-tools.sh | ||
- run: | ||
name: 'TOOLS: npm install and link in generator-jhipster-react-native' | ||
command: npm i && npm link | ||
- run: | ||
name: 'SETUP: copy the JDL file for the backend and app' | ||
command: $SCRIPT_DIR/copy-jdl-file.sh | ||
- run: | ||
name: 'GENERATING: generate jhipster backend' | ||
command: $SCRIPT_DIR/generate-jhipster-backend.sh | ||
- run: | ||
name: 'GENERATING: generate react-native app' | ||
command: $SCRIPT_DIR/generate-react-native-app.sh | ||
# - macos/preboot-simulator: | ||
# version: "17.0" | ||
# platform: "iOS" | ||
# device: "iPhone 15" | ||
- run: | ||
name: 'TESTING: run detox tests' | ||
command: pwd && ls && $SCRIPT_DIR/run-detox-tests.sh | ||
- run: | ||
name: 'TESTING: rename detox screenshots to a valid filename' | ||
command: $SCRIPT_DIR/rename-detox-screenshots.sh | ||
# Next, the node orb's install-packages step will install the dependencies from a package.json. | ||
# The orb install-packages step will also automatically cache them for faster future runs. | ||
# - node/install-packages: | ||
# # If you are using yarn, change the line below from "npm" to "yarn" | ||
# pkg-manager: npm | ||
|
||
workflows: | ||
# Below is the definition of your workflow. | ||
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above. | ||
# CircleCI will run this workflow on every commit. | ||
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/configuration-reference/#workflows | ||
iOS-E2E: | ||
jobs: | ||
- generate | ||
# # - jhipster | ||
# - generate: | ||
# requires: | ||
# - jhipster | ||
# For running simple node tests, you could optionally use the node/test job from the orb to replicate and replace the job above in fewer lines. | ||
# - node/test |
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
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
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
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,8 +1,12 @@ | ||
{ | ||
"testEnvironment": "./environment", | ||
"rootDir": "..", | ||
"testMatch": ["<rootDir>/e2e/**/*.spec.js"], | ||
"reporters": ["detox/runners/jest/reporter"], | ||
"testEnvironment": "detox/runners/jest/testEnvironment", | ||
"globalSetup": "detox/runners/jest/globalSetup", | ||
"globalTeardown": "detox/runners/jest/globalTeardown", | ||
"testRunner": "jest-circus/runner", | ||
"testTimeout": 300000, | ||
"testRegex": "\\.spec\\.js$", | ||
"reporters": ["detox/runners/jest/streamlineReporter"], | ||
"maxWorkers": 1, | ||
"verbose": true | ||
} |
This file was deleted.
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
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 |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
}, | ||
"devDependencies": { | ||
"@react-native-community/eslint-config": "3.2.0", | ||
"@ruddell/detox-expo-helpers": "0.7.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed it because it contains outdated |
||
"@storybook/addons": "7.6.13", | ||
"@storybook/react-native": "6.5.7", | ||
"@storybook/theming": "7.6.13", | ||
|
@@ -48,7 +47,6 @@ | |
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"expect": "29.7.0", | ||
"expo-detox-hook": "1.0.10", | ||
"jest": "29.7.0", | ||
"jest-circus": "29.7.0", | ||
"lint-staged": "15.2.2", | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
considering rewrite
reloadApp
, or maybe occur an issue: wix/Detox#3992