PyTest

Due to library incompatibilities, this stage is currently broken and any use of this stage is unsupported.

Stage for Test Case-based testing via PyTest.

  • Kind: Grading Stage

  • Behavior: Compiles and runs test cases written with PyTest framework.

Config

pyTest:
  args: [String]?                       # Arguments to pass to the pytest executable [default: []]
  additional_pip_packages: [String]?    # Additional packages requiring installation from pip [default: []]
  score: Double?                      # Total Score of this stage
  treatDenormalScore: DenormalPolicy? # Policy to use when resulting score is NaN
  scoreWeighting: ScoreWeighting?     # Weighting policy of this stage
  • This stage implements Total-Based Scorable and Weighted Scorable.

    • The scorable policies are mutually exclusive; Enabling both is an error.

    • See Scorable.md for more information on score, treatDenormalScore, and scoreWeighting.

    • See XUnit.md for more information on the predicates available for scoreWeighting.

Example

pyTest:
  args: []
  additional_pip_packages: []

Report

See XUnit report.