1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-04-23 07:21:23 +00:00

Client-side tests

This spins up a Minecraft instance (much like we do for the server) and
instructs the client to take screenshots at particular times. We then
compare those screenshots and assert they match (modulo some small
delta).
This commit is contained in:
Jonathan Coates
2021-08-20 13:32:42 +01:00
parent 4b33306940
commit 0ff6b0ca70
11 changed files with 1125 additions and 59 deletions

View File

@@ -32,7 +32,7 @@ jobs:
run: |
./gradlew assemble || ./gradlew assemble
./gradlew downloadAssets || ./gradlew downloadAssets
./gradlew build
xvfb-run ./gradlew build
- name: Upload Jar
uses: actions/upload-artifact@v2
@@ -40,6 +40,15 @@ jobs:
name: CC-Tweaked
path: build/libs
- name: Upload Screnshots
uses: actions/upload-artifact@v2
with:
name: Screenshots
path: test-files/client/screenshots
if-no-files-found: ignore
retention-days: 5
if: failure()
- name: Upload Coverage
uses: codecov/codecov-action@v1