1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-26 06:00:07 +01:00
Commit Graph

87 Commits

Author SHA1 Message Date
2fe58bcb5b ♻️ Ensure services status is known at launch
- Added shell pipe timeout (w/ new tests)
- Reworked ServicesManager to be blocking for startup (10s)
- Renamed queues to be more consistent
2026-01-30 13:26:04 +01:00
8d91d18f79 Fix unit test w/ async 2025-12-06 12:25:25 +01:00
adb042ee83 Fix tests (unit tests now concurrently run in <5 sec) 2025-12-02 15:25:12 +01:00
564e47f66e ♻️ Add minimal Container boot 2025-12-02 15:21:05 +01:00
22c46e7e85 Improve FSNotifierTest 2025-11-29 23:27:02 +01:00
e968263568 ♻️ Refactor file watchers 2025-11-29 23:19:50 +01:00
ac28e4425b Use fake value for test 2025-11-29 18:44:28 +01:00
4b41704fdf ♻️ Improve debouncing mechanism 2025-11-29 14:38:28 +01:00
fc01755dfa ♻️ Rework FSNotifier and test it 2025-11-29 12:58:21 +01:00
3e1bd26b38 Document confirmed fix w/ Thread Sanitizer 2025-11-29 11:30:40 +01:00
a4cbbd28cc 🐛 Fix issue with RealShell.attach output being omitted 2025-11-29 10:53:12 +01:00
ccc6aaf06d 🐛 Fix issue with concurrent output in RealShell.attach 2025-11-29 10:25:07 +01:00
a61eea34fa ♻️ Update copyright messages 2025-11-23 17:37:46 +01:00
93e203be50 🐛 Use NSLock with PhpEnvironments 2025-11-23 17:31:59 +01:00
d6fa3fc364 ♻️ Reworked how getting a CaskFile via URL works 2025-11-18 15:39:43 +01:00
ec9102618c RealShellTest runs .serialized tests (for timing) 2025-11-18 14:03:23 +01:00
ea6d7ca457 Add testable WebApi 2025-11-18 14:02:16 +01:00
7a60435421 ♻️ Improvements to Container
- RealShell is not reloaded during runtime (bugfix?)
- Container variables are now private(set)
- Initialization now also sets `webApi` property (new)
- It is only possible to run `bind` on a `Container` once now
  (previously known as `prepare`)
- Preparation for upcoming WebApi to replace `curl` command
  (for checking for updates)
2025-11-18 12:04:37 +01:00
38b3c108bf ♻️ Use replacing(with:) instead of .replacingOccurrences(of:with:)
The newer Swift native method is broadly supported and can properly
handle complex UTF-8 characters like emoji, whereas the old API does
not work correctly with emoji.

In most cases, this likely wouldn't have caused any issues but it does
make things a little cleaner now, and ensures we won't encounter emoji
trouble in the future.
2025-11-11 12:55:23 +01:00
c43f16d0d5 Fix unit tests 2025-10-16 19:00:02 +02:00
fa403b5a99 ♻️ Refactor tests to Swift Testing 2025-10-16 15:57:41 +02:00
a314eef3f7 Unit tests can now run in parallel 2025-10-16 14:54:50 +02:00
5b63211746 ♻️ All unit tests pass w/ DI container 2025-10-16 14:03:16 +02:00
79a23a2af2 ♻️ The app can build again (again)! 2025-10-16 11:48:16 +02:00
8af304979b 🚧 WIP: Test refactoring 2025-10-09 16:21:46 +02:00
85b12d1aec ♻️ Prevent unit tests from running concurrently
The way the testing classes are built with the singletons currently
prevents various test structs from being run at the same time.

I've adjusted the tests in the PHP Monitor EAP test configuration so
that they are not executed concurrently. This does slow down the test
suite but prevents odd crashes from individual tests interfering with
other tests.

It's not an ideal solution and I would like to address this in the
future, but I suspect this will be rather cumbersome. Since the app
does not actually suffer from this particular issue, this is something
worth investigating later.
2025-09-30 16:14:17 +02:00
db8df8575d ♻️ Migrate more tests to Swift Testing (3/?) 2025-09-29 17:59:33 +02:00
ceff52ed11 ♻️ Migrate more tests to Swift Testing (2/?) 2025-09-29 17:12:43 +02:00
5b27d9f0ea ♻️ Migrate more tests to Swift Testing 2025-09-29 16:39:32 +02:00
9c9720de42 🚧 Add fake API abstraction 2025-09-29 13:40:01 +02:00
13013f2513 ♻️ Lint tests, add background update check 2025-09-26 17:00:43 +02:00
3d403f5ef6 ⬆️ Modernize test suite files 2025-09-25 17:05:32 +02:00
8abd775eea Fix tests, cleanup 2025-09-25 16:33:10 +02:00
4e7c8ac624 ♻️ WIP: Updates related to Valet version change
- Centralized logic related to fetching Valet version.
- Updating global dependencies now updates the version number of Valet
  in the driver section.
- The latest version of Valet is now determined by checking Packagist.
  (This only occurs when the app starts up.)
2025-08-27 11:23:18 +02:00
88b2495c87 ♻️ WIP: Change some tests to Swift Testing, add TestBundle 2025-08-25 17:45:56 +02:00
b3b509409a Fix test 2024-03-20 10:47:52 +01:00
d83c629a7b Fix some tests 2024-01-13 12:46:33 +01:00
a7d5950aa0 Test synchronous shell output 2023-11-26 21:48:40 +01:00
c8ab2e67f6 ♻️ Various refactoring 2023-11-01 12:33:34 +01:00
f82ab913c6 Detect which extensions are available 2023-10-31 20:40:11 +01:00
58943148fa 🏗️ WIP: Detect which extensions are available 2023-10-30 20:21:50 +01:00
7977a4e177 🏗️ WIP: Reading of bitsize config entries 2023-09-04 18:39:32 +02:00
4bf475bae2 👌 Remove appcast since it is no longer expected 2023-07-09 15:22:47 +02:00
7f04dd5fcb Fix tests 2023-05-15 19:15:02 +02:00
08dcfb36f4 🏗 WIP: Formulae manager UI changes 2023-03-19 14:00:15 +01:00
f8b605f749 👌 Parse upgradable versions 2023-03-18 02:11:57 +01:00
8f1304308d 🏗 WIP: Parsing version updates 2023-03-17 20:38:21 +01:00
d1498eb070 🐛 Fix issue with parsing CaskFile 2023-03-03 14:44:15 +01:00
defb6e357a 🔀 Merge branch 'dev/5.8' into dev/6.0 2023-02-27 19:13:12 +01:00
715b674929 Fix tests 2023-02-26 15:02:43 +01:00