Skip to content

FR: Warn optionally on duplicate test names #1848

@krlmlr

Description

@krlmlr

Should testthat warn in this case, perhaps optionally?

library(testthat)

test_that("foo", {
  expect_true(TRUE)
})
#> Test passed 🎊

test_that("foo", {
  expect_true(TRUE)
})
#> Test passed 🎊

Created on 2023-08-23 with reprex v2.0.2

Reference: tidyverse/dplyr#6901 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions