mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-03-28 06:50:08 +01:00
📝 Add instructions for tests
This commit is contained in:
22
.github/workflows/tests.yml
vendored
22
.github/workflows/tests.yml
vendored
@@ -1,22 +0,0 @@
|
||||
name: Unit Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev/26.x]
|
||||
pull_request:
|
||||
branches: [dev/26.x]
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
xcodebuild test \
|
||||
-project "PHP Monitor.xcodeproj" \
|
||||
-scheme "Unit Tests" \
|
||||
-destination "platform=macOS" \
|
||||
-parallel-testing-enabled YES \
|
||||
-quiet
|
||||
@@ -65,6 +65,14 @@ If you would like to run the unit tests outside of Xcode, you can run:
|
||||
-destination "platform=macOS" \
|
||||
-parallel-testing-enabled NO
|
||||
|
||||
### UI tests
|
||||
|
||||
xcodebuild test \
|
||||
-project "PHP Monitor.xcodeproj" \
|
||||
-scheme "PHP Monitor" \
|
||||
-destination "platform=macOS" \
|
||||
-only-testing "UI Tests"
|
||||
|
||||
### Failures in UI tests
|
||||
|
||||
You may sporadically see failures in UI tests due to the following error: `Invalid parameter not satisfying: point.x != INFINITY && point.y != INFINITY`. This seems to be an issue with Xcode that Apple may need to resolve? You can retry the tests in question and they should eventually pass.
|
||||
|
||||
Reference in New Issue
Block a user