Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.34 KB

File metadata and controls

46 lines (31 loc) · 1.34 KB

Steve's Simple Storage - Test Suite

Test Coverage

Unit tests live in the core module and test pure Java classes without Minecraft runtime dependencies.

Test Classes

  1. RefStringsTest - Tests mod constants

    • testModId() - Validates RefStrings.MODID value
    • testModName() - Validates RefStrings.NAME value
    • testModVersion() - Validates RefStrings.VERSION value
  2. SortModeTest - Tests sort mode enum behavior

    • Validates display names, rotation, and comparator logic
  3. ExtractListModeTest - Tests extract list mode enum behavior

    • Validates display names, descriptions, and rotation
  4. SecurityBoxTest - Tests security box data structures

Running Tests

# Run common module unit tests
./gradlew :core:test

# Run tests with clean build
./gradlew :core:clean :core:test

# View test report
open core/build/reports/tests/test/index.html

Test Results

  • Total Tests: 4 test classes
  • Passing: All
  • Location: core/src/test/java/

Notes

  • Tests live in the core module alongside the platform-agnostic code they test
  • Only pure Java classes without Minecraft runtime dependencies can be unit tested
  • Registration classes (in neoforge module) depend on NeoForge APIs and cannot be unit tested
  • NeoForge game tests (in neoforge/.../gametest/) provide integration-level testing