We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40cb2f0 commit dd23aabCopy full SHA for dd23aab
template.qmd
@@ -205,11 +205,15 @@ if (require("covtracer", quietly = TRUE)) {
205
dplyr::mutate(file = paste0("``` ", file, " ```")) %>%
206
dplyr::select(`Test Description` = test_name, Documentation = file)
207
208
- tt(
209
- tt_covtracer_df,
210
- caption = "Tracebility matrix mapping unit tests to documented behaviours.",
211
- theme = "striped"
212
- )
+ if (nrow(tt_covtracer_df) > 0) {
+ tt(
+ tt_covtracer_df,
+ caption = "Tracebility matrix mapping unit tests to documented behaviours.",
+ theme = "striped"
213
+ )
214
+ } else {
215
+ cat("No test suites.")
216
+ }
217
} else {
218
cat("{covtracer} not available to produce a traceability matrix")
219
}
0 commit comments