Class Track1Runner

java.lang.Object
dev.omnist.conformance.Track1Runner

public final class Track1Runner extends Object
Track 1 of the conformance harness: runs the compiled omnist CLI as a real subprocess against the fixture-based test suite (omnist-spec ยง8.5) and compares its stdout/stderr/exit-code against each fixture's expected result.
  • Method Details

    • runTrack1

      public static int[] runTrack1(Path fixturesDir, Path repoDir) throws Exception
      Runs every fixture under fixturesDir against the CLI jar built from repoDir and returns the tally.
      Parameters:
      fixturesDir - directory containing the Track 1 fixture files
      repoDir - the repo root, used to locate target/omnist-j-*.jar
      Returns:
      a 3-element array {pass, fail, skip}
      Throws:
      Exception - if a fixture cannot be read or the CLI subprocess cannot be launched