Skip to content
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

UI Tests performance #138

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
4 changes: 4 additions & 0 deletions .github/workflows/xcode-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:

- name: Switch Xcode version
run: sudo xcode-select -s "/Applications/Xcode_14.2.app"
- name: Collect Workflow Telemetry
uses: AlexPerathoner/[email protected]
with:
metric_frequency_thousands_of_second: 100
- name: Build and Test
continue-on-error: true
id: run-tests
Expand Down
12 changes: 10 additions & 2 deletions SlimHUDUITests/HudsUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ final class HudsUITest: SparkleUITests {

XCTAssert(app.windows.count == 0)
DispatchQueue.global().async {
try! self.changeVolume()
do {
try self.changeVolume()
} catch {
fatalError("Could not run change volume script")
}
}
sleep(1)
XCTAssertTrue(isVolumeHudVisible(app: app))
Expand Down Expand Up @@ -47,7 +51,11 @@ final class HudsUITest: SparkleUITests {
sleep(1)

DispatchQueue.global().async {
try! self.changeVolume()
do {
try self.changeVolume()
} catch {
fatalError("Could not run change volume script")
}
}
sleep(1)
XCTAssertTrue(isVolumeHudVisible(app: app))
Expand Down
1 change: 1 addition & 0 deletions SlimHUDUITests/SettingsUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,5 @@ final class SettingsUITest: SparkleUITests {
.pixelAt(x: Int(position.x), y: Int(position.y))
XCTAssertNotEqual(firstColor, secondColor)
}

}
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Every day you change your volume or brightness and an ugly and unbelievably old overlay animation appears. *SlimHUD* is what you need.

<img align="left" height="40%" src="simple-hud.png">
<img align="left" height="50%" src="simple-hud.png">

## Installation

Expand All @@ -13,6 +13,6 @@ Download the latest release [here](https://github.com/AlexPerathoner/SlimHUD/rel
Or use `brew install slimhud`!

## Support
Even starring this project on [GitHub](https://github.com/AlexPerathoner/SlimHUD/) is a great support! If you want to support me even more, you can buy me a beer! :D
Even starring this project on [GitHub](https://github.com/AlexPerathoner/SlimHUD/) <a href="https://github.com/AlexPerathoner/SlimHUD/"><img width="20rem" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"></a> is a great way to support! If you want to support me even more, you can buy me a beer or [sponsor this project](https://github.com/sponsors/AlexPerathoner)! :D

<br><a href="https://www.buymeacoffee.com/alexpera"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a beer&emoji=🍺&slug=alexpera&button_colour=94e3fe&font_colour=000000&font_family=Bree&outline_colour=000000&coffee_colour=FFDD00" /></a>