1
0
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:
2026-02-16 11:44:40 +01:00
parent 8d63165129
commit 353bf8ffff
2 changed files with 12 additions and 26 deletions

View File

@@ -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

View File

@@ -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.