Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
starswaitforus committed Oct 9, 2024
1 parent 552f2f0 commit 7d16056
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
timeout-minutes: 1
run: |
export XDEBUG_MODE=off
composer check
composer unit
false
- name: "Check code coverage min percentage"
timeout-minutes: 4
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"stan": "php vendor/bin/phpstan --memory-limit=300M analyze",
"unit": "php vendor/bin/phpunit -d memory_limit=70M",
"infection": "php -d zend.assertions=1 -d memory_limit=180M vendor/bin/infection --show-mutations --only-covered --threads=6 --min-covered-msi=100",
"infection": "php -d memory_limit=180M vendor/bin/infection --show-mutations --only-covered --threads=6 --min-covered-msi=100",
"infection-cache": "@infection --coverage=www/coverage/",
"dev": "php cli/server.php 1 8080 --debug & php cli/udp-ws-bridge.php",
"dev2": "php cli/server.php 2 8080 --debug & php cli/udp-ws-bridge.php & php cli/udp-ws-bridge.php 8082",
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@
<directory>server/src/Weapon/</directory>
</exclude>
</source>
<php>
<ini name="error_reporting" value="-1"></ini>
<ini name="zend.assertions" value="1"></ini>
</php>
</phpunit>
1 change: 1 addition & 0 deletions test/og/Game/RoundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function testMsToTickConstantTenOnTest(): void
$this->assertSame(0, Util::millisecondsToFrames(0));
$this->assertSame(1, Util::millisecondsToFrames(1));
$this->assertSame(1, Util::millisecondsToFrames(10));
assert(false);
$this->assertSame(123, Util::millisecondsToFrames(1230));
$this->assertSame(240, Util::millisecondsToFrames(RifleAk::reloadTimeMs));
}
Expand Down

0 comments on commit 7d16056

Please sign in to comment.