InvSee-plus-plus icon indicating copy to clipboard operation
InvSee-plus-plus copied to clipboard

Create integration tests for saving/loading

Open Jannyboy11 opened this issue 1 month ago • 2 comments

These tests should be run for every minecraft compat version supported by the plugin. This will give more confidence player save files won't be corrupted when saving them.

Jannyboy11 avatar Dec 05 '25 18:12 Jannyboy11

Since it's quite hard to mock a server environment with JUnit tests, I opted to create a separate plugin for testing. The testing plugin consumes both the public api and a small internal api. Implemented by the following PR: https://github.com/Jannyboy11/InvSee-plus-plus/pull/176

Jannyboy11 avatar Dec 05 '25 22:12 Jannyboy11

Actually, it would be cool to have this work using Testcontainers; the testing plugin could communicate with integration test (e.g. over http) and receive commands and return results.

Probably should implement this after https://github.com/Jannyboy11/InvSee-plus-plus/issues/123.

Jannyboy11 avatar Dec 06 '25 08:12 Jannyboy11