1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-30 00:57:55 +00:00

Measure code coverage from in-game tests

More importantly, `./gradlew check' actually runs the in-game tests,
which makes the CI steps look a little more sensible again.

Somewhat depressing that one of the longest files (15th) in CC:T is the
build script.
This commit is contained in:
Jonathan Coates
2021-01-15 09:54:38 +00:00
parent 9ae0f4a993
commit e1e7ef59c6
4 changed files with 58 additions and 16 deletions

View File

@@ -21,6 +21,6 @@ Prints each key when the user presses it, and if the key is being held.
```lua
while true do
local event, key, is_held = os.pullEvent("key")
print(("%s held=%b"):format(keys.getName(key), is_held))
print(("%s held=%s"):format(keys.getName(key), is_held))
end
```