Overview
| Artifact ID: | 7e72109b89617dbc5e8162a48406a2b75f3d1290af01785f11c80ab9c1ad3b15 |
|---|---|
| Ticket: | 53cdb9696c0be77ac7ea2ca1042f04b1e441b52d
tcltest: how to mark tests as known/expected to fail without skipping? |
| User & Date: | chrstphrchvz on 2022-09-05 21:49:50 |
Changes
- icomment:
No, writing a test which should generate an error in the absence of an issue is not the same marking a test as known/expected fail in the presence of an unresolved issue. The contents of a test are code which should pass if there are no unresolved issues. Known/expected fail is metadata which only the test harness should know about, not the code within the test; the results from a test harness should use this metadata to distinguish tests which expectedly fail/unexpectedly pass from tests in the existing pass/fail/skip categories. The idea is that under a workflow resembling test-driven development, when an issue (bug or missing feature) is noticed, a test is created for it which initially fails, and is marked as known/expected to fail (especially when a solution is not expected right away). But the test should always run by default and report whether it fails as expected or passes unexpectedly; short of something like uncontained crashes, there should be no reason to skip it by default. If a release is made before the solution is implemented, then it is clear to anyone running the default test suite that the maintainer is already aware that there are known/expected failing tests for issues which have yet to be addressed in a release. When the solution is implemented, the test is kept and marked as expected to pass.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"