File: case_result.py

package info (click to toggle)
junit2html 31.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: xml: 3,208; python: 1,023; makefile: 6; sh: 5
file content (16 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from enum import Enum


class CaseResult(str, Enum):
    UNTESTED = "untested"
    PARTIAL_PASS = "partial pass"
    PARTIAL_FAIL = "partial failure"
    TOTAL_FAIL = "total failure"
    FAILED = "failed"  # the test failed
    SKIPPED = "skipped"  # the test was skipped
    PASSED = "passed"  # the test completed successfully
    ABSENT = "absent"  # the test was known but not run/failed/skipped
    UNKNOWN = ""

    def __str__(self) -> str:
        return self.value