Skip to content

Commit 5fcbb59

Browse files
committed
tests, smoke-all - add skip field and skip docusaurus equations test
Add tests.run.skip field to allow unconditional test skipping with custom message. Skip docusaurus equations test until Pandoc fix for display math newlines is released (fixed in pandoc@8123be6).
1 parent ddcf969 commit 5fcbb59

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/docs/smoke-all/2024/01/18/docusaurus/equations.qmd‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Equations
33
format: docusaurus-md
44
_quarto:
55
tests:
6+
run:
7+
skip: "Pandoc 3.7+ removes newlines in display math blocks (fixed in pandoc@8123be6, awaiting release)"
68
docusaurus-md:
79
ensureFileRegexMatches:
810
- ["\\$\\$", "price = \\\\hat", "\\$e = mc\\^2\\$"]

‎tests/smoke/smoke-all.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ function skipTest(metadata: Record<string, any>): string | undefined {
103103
return undefined;
104104
}
105105

106+
// Check explicit skip with message
107+
if (runConfig.skip) {
108+
return typeof runConfig.skip === "string" ? runConfig.skip : "tests.run.skip is true";
109+
}
110+
106111
// Check CI
107112
if (runningInCI() && runConfig.ci === false) {
108113
return "tests.run.ci is false";

0 commit comments

Comments
 (0)