QualityOutcometypeno test imports ittype QualityOutcome = Outcome | "not_run";What became of a case: 0008-test-evidence's five outcomes and not_run, a planned case that never started, with its reason (0001-quality-evidence FR-019).
The words of the quality system's record (commons 0021-ifqs): the outcome of a case (the five of 0008-test-evidence FR-001 and not_run, FR-019), the grade of evidence E0 to E5 (FR-026) with its rank, the names of the attributes this specification adds to the record, the layout of the quality branch and its notes (FR-021 to FR-023), and the names ISO/IEC 25010 and ISO/IEC/IEEE 29119-3 give (FR-017). Pure: nothing here reads a host.
The outcome and grade words are the outcomeWord and the keys of the code lists in commons/ontology/ifqs/ifqs.ts (ifqs:TestOutcome, ifqs:EvidenceGrade); a test (quality-record.test.ts) asserts that they are equal, so that the two cannot drift apart.
import { gradeRank, isGrade } from "./names.ts";
isGrade("E4") && gradeRank("E4") > gradeRank("E3"); // trueQualityOutcometypeno test imports ittype QualityOutcome = Outcome | "not_run";What became of a case: 0008-test-evidence's five outcomes and not_run, a planned case that never started, with its reason (0001-quality-evidence FR-019).
QUALITY_OUTCOMESconstconst QUALITY_OUTCOMES: readonly QualityOutcome[]Every outcome of a case, in the order reports list them.
isQualityOutcomefunctionno test imports itfunction isQualityOutcome(text: string): text is QualityOutcomeWhether a text is an outcome of a case, not_run included.
Gradetypeno test imports ittype Grade = "E0" | "E1" | "E2" | "E3" | "E4" | "E5";The grade of a piece of evidence (0001-quality-evidence FR-026): none, stated, reviewed, tested, attested, observed.
GRADESconstconst GRADES: readonly Grade[]Every grade, lowest first.
isGradefunctionno test imports itfunction isGrade(text: string): text is GradeWhether a text is a grade.
gradeRankfunctionfunction gradeRank(g: Grade): numberThe rank of a grade, 0 to 5 (ifqs:gradeRank).
higherGradefunctionfunction higherGrade(a: Grade, b: Grade): GradeThe higher of two grades.
gradeWordsfunctionno test imports itfunction gradeWords(g: Grade): stringWhat each grade says, as a few words that are shown beside it.
showGradefunctionfunction showGrade(g: Grade): stringA grade as it is shown: E3 tested.
ATTRconstconst ATTR: { readonly grade: "ifc.quality.grade"; readonly previous: "ifc.quality.previous.sha256"; readonly characteristic: "ifc.test.characteristic"; readonly notRun: "ifc.quality.not_run"; readonly rule: "ifc.check.rule"; readonly line: "code.line.number"; }The attributes this specification adds to the record (0021-ifqs Assumptions: names of this specification, not of OpenTelemetry).
QUALITY_BRANCHconstconst QUALITY_BRANCH: "quality"The name of the orphan branch the evidence is kept on (FR-021).
NOTES_REFconstconst NOTES_REF: "refs/notes/quality"The notes reference that links a tested commit to its evidence (FR-023).
EVIDENCE_ROOTconstno test imports itconst EVIDENCE_ROOT: "quality/evidence"The folder of the evidence files on the branch (FR-021).
CASE_EVENTconstno test imports itconst CASE_EVENT: "ifc.test.case"The event name of a case's log record (0008-test-evidence).
RUN_GRADEconstconst RUN_GRADE: GradeThe grade a case that ran to a result carries: a run proved it, and the record exists (FR-026).
NO_GRADEconstno test imports itconst NO_GRADE: GradeThe grade of what never proved anything: a case that did not run, or did not end (FR-026).
CHARACTERISTICSconstconst CHARACTERISTICS: readonly string[]The quality characteristics of ISO/IEC 25010:2023, the words ifc.test.characteristic takes (FR-017). The standard's text is not copied; these are its names for the characteristics.
isCharacteristicfunctionno test imports itfunction isCharacteristic(text: string): booleanWhether a text is the name of a characteristic.
DOCUMENTSconstconst DOCUMENTS: { readonly completion: "Test Completion Report"; readonly status: "Test Status Report"; readonly incident: "Test Incident Report"; }The document names of ISO/IEC/IEEE 29119-3 that a report of a run bears (FR-017).