Title: | A testthat reporter for buildkite |
---|---|
Description: | A testthat reporter that prints progress output in a format for use in buildkite logs. |
Authors: | Robert Ashton [aut, cre], Imperial College of Science, Technology and Medicine [cph] |
Maintainer: | Robert Ashton <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2024-12-14 02:49:23 UTC |
Source: | https://github.com/mrc-ide/testthat.buildkite |
This reporter is an extension of ParallelProgressReporter see source https://github.com/r-lib/testthat/blob/main/R/reporter-progress.R#L386 The overriden functions here are modified versions of the functions on the ParallelProgressReporter.
This reporter gives us
Regularly updates progress logs
Time for each test file to run
All errors and warnings
This overrides some functions so that
It is less chatty (updates every 1 second) so build log is not too long
There is no spinner (as we are not running interactively)
In the future we could extend this to
Have more foldable sections
Report time for every test within a file
testthat::Reporter
-> testthat::ProgressReporter
-> testthat::ParallelProgressReporter
-> BuidlkiteReporter
new()
BuildkiteReporter$new(...)
update()
BuildkiteReporter$update(force = FALSE)
clone()
The objects of this class are cloneable with this method.
BuildkiteReporter$clone(deep = FALSE)
deep
Whether to make a deep clone.