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

Add Automated Smoke Testing #10

Closed
30 tasks
Nolij opened this issue Apr 15, 2024 · 4 comments
Closed
30 tasks

Add Automated Smoke Testing #10

Nolij opened this issue Apr 15, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@Nolij
Copy link
Owner

Nolij commented Apr 15, 2024

Tested platforms should include:

  • Fabric
    • Latest Snapshot
    • Latest Release
    • 21.1
    • 20.1
    • 18.2
    • 16.5
    • 14.4
  • Legacy Fabric
    • 12.2
    • 8.9
    • 7.10
  • Babric b7.3
  • NeoForge
    • Latest Release
    • Latest Snapshot (if snapshot builds are usable when this is implemented)
    • 21.1
    • 20.4
    • 20.1
  • LexForge
    • 20.5
    • 20.4
    • 20.1
    • 19.2
    • 18.2
    • 16.5
    • 14.4
    • 12.2
    • 8.9
    • 7.10

Testing should verify that each listed version & platform launches without crashing.

Additionally, the following are nice to haves that may only be applied to the most-used versions:

  • Screenshot testing
  • Config reload testing

Ideally this should be able to be performed locally as I imagine launch testing alone would take an extremely long time in CI on GitHub-provided runners.

@Nolij Nolij added enhancement New feature or request help wanted Extra attention is needed labels Apr 15, 2024
@Nolij Nolij added this to the Zume 1.0.0 milestone Apr 15, 2024
@Nolij Nolij self-assigned this Apr 15, 2024
@rhysdh540
Copy link
Contributor

Would it be a good idea to run multiple instances of Minecraft concurrently to improve testing time?

@Nolij
Copy link
Owner Author

Nolij commented Apr 15, 2024

Would it be a good idea to run multiple instances of Minecraft concurrently to improve testing time?

This would probably be infeasible on GitHub runners, but on a sufficiently powerful PC it should be very doable, hence my desire for it to be able to be run locally. Ideally I'll run all the tests at the same time on my PC.

@embeddedt
Copy link
Collaborator

This would probably be infeasible on GitHub runners

You can use a matrix action to run multiple runners at once; up to 20 concurrently running jobs are allowed per project if I recall correctly.

@Nolij Nolij modified the milestones: Zume 1.0.0, Zume 2.0.0 May 6, 2024
@embeddedt
Copy link
Collaborator

We can use https://github.com/coactions/setup-xvfb to run the game in a GitHub action without any special configuration of OpenGL, but we'll need a headless launcher so that we can test production builds. Testing deobf builds run through Gradle is probably unwise for Zume due to the obfuscation/jar compression that often breaks things.

@Nolij Nolij closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants