Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: google/patrick

patrick 0.3.0

08 Mar 23:27

Choose a tag to compare

  • Patrick can build test names as {glue}-formatted strings, e.g.

    with_parameters_test_that(
      "col2hex works for color {color_name}",
      {
        expect_equal(col2hex(color_name), color_hex)
      },
      color_name = c("red", "blue", "black"),
      color_hex = c("#FF0000", "#0000FF", "#000000")
    )

    This also works for supplying such a formatted string as .test_name.

    To disable this behavior, use .interpret_glue = FALSE.

    Thanks @chiricom!

Patrick 0.2.0

13 Oct 18:27

Choose a tag to compare

New features

  • Patrick will try to generate names automatically if not provided. This
    also works when cases are provided as a data frame.

Patrick 0.1.0

11 Oct 22:21

Choose a tag to compare

Breaking changes:

  • Setting test names should now happen with .test_name, instead of the
    implicit test_name variable from before. This is now an explicit
    argument for the function with_parameters_test_that(), and the leading dot
    should help distinguish this from values passed as cases.

Patrick 0.0.4

23 Sep 04:24

Choose a tag to compare

Update patrick for testthat 3e.

  • Catch warnings for code not being braced. We still produce the right code.
  • Make sure patrick uses the right line numbers.

Patrick 0.0.3

27 Oct 18:56

Choose a tag to compare

  • Add more examples and tests for how patrick works with data frames.
  • Update with_parameters_test_that() to use
    data, dots, details
  • Modernize package files: DESCRIPTION and R/patrick-package.R.

patrick 0.0.2

14 Sep 20:55

Choose a tag to compare

  • This is a minor update. Tests are compatible with the next version of
    testthat.