Package 'testthat.buildkite'

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-10-15 03:45:06 UTC
Source: https://github.com/mrc-ide/testthat.buildkite

Help Index


Test reporter: Buildkite format.

Description

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.

Details

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

Super classes

testthat::Reporter -> testthat::ProgressReporter -> testthat::ParallelProgressReporter -> BuidlkiteReporter

Methods

Public methods

Inherited methods

Method new()

Usage
BuildkiteReporter$new(...)

Method update()

Usage
BuildkiteReporter$update(force = FALSE)

Method clone()

The objects of this class are cloneable with this method.

Usage
BuildkiteReporter$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.