csharpfritz / csharpfritz/Aspire-Minecraft

[MCA Inspector] Add world save directory support to MinecraftAppFixture

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
31
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Summary

Add world save directory property to MinecraftAppFixture so integration tests can read .mca region files directly.

## Tasks

- [ ] Expose WorldSaveDirectory property on fixture
- Captures mount path from Docker container setup
- Used by AnvilRegionReader in tests
- [ ] Create AnvilTestHelper convenience wrapper
- Methods: VerifyStructureAsync(...), VerifyBlockRangeAsync(...)
- Handles save-all flush + delay pattern
- [ ] Document usage: "Call fixture.Rcon.SendCommandAsync('save-all flush') before reading"
- [ ] Add sample code to test helper

## Acceptance Criteria

- [ ] Fixture property accessible in all integration tests
- [ ] AnvilTestHelper compiles and has 3 example usages documented
- [ ] Sample integration test uses both RCON and MCA methods

Contributor guide

Open the contributing guide

Research direction

Start by reading the MinecraftAppFixture Docker container setup and current AnvilRegionReader usage in integration tests. Review the requested AnvilTestHelper methods and the save-all flush guidance, then add the property, helper, documentation, and sample integration test. Done means the fixture is accessible across integration tests, the helper compiles with three documented examples, and the sample uses both RCON and MCA methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.