Skip to main content

Testing

Run the full Maven suite with:

./mvnw test

The suite includes:

  • ProcessControllerTest, which submits all five real images through the controller using an in-memory CSV and the test profile.
  • ImageProcessingServiceTest, which compares OMR extraction against ground-truth arrays for all five images.
  • DummyOcrServiceImpl, which replaces production Tesseract in the test profile and returns Dummy Student.

The five fixtures include flat and phone-photo images and a double mark. A passing suite establishes the checked-in fixture behavior and controller path. It does not establish production OCR accuracy, arbitrary layouts, upload limits, authentication, concurrency, or debug-file retention.