Skip to content

"F" and "E" labels swapped in MinimalReporter #311

@richierocks

Description

@richierocks

Using the minimal reporter, failing tests display an "E", and tests that throw an error display and "F". This seems to be the wrong way around to me, but I don't know if it's a genuine mistake or if I'm misunderstanding the output.

To reproduce, save this to a file:

test_that(
  "one is greater than zero",
  {
    expect_true(1 > 0)
  }
)
test_that(
  "one is less than zero",
  {
    expect_true(1 < 0)
  }
)
test_that(
  "this code runs",
  {
    stop("Oh no! An error!")
  }
)

Then run

test_file("test-file.R", reporter = "minimal")

I see the output .EF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions