Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are the tests failed or not? #969

Closed
fannieywf opened this issue Nov 22, 2019 · 1 comment
Closed

Are the tests failed or not? #969

fannieywf opened this issue Nov 22, 2019 · 1 comment

Comments

@fannieywf
Copy link

@fannieywf fannieywf commented Nov 22, 2019

Hi team,
I am trying to translate the unittest elements from Python in R using testthat(). This is my test code in test_trick.R (similar test in test_magic.R):

context("check the sum")
library(testthat)

test_that("check the sum", {
  expect_equal(trick(parse_line("D2.html")), 6972)
  }
)

with the bash output as follows:
image

I read the failed: 1 as the test results but there are no failed messages. That's why I do not get it whether the tests are failed or not.
Also No one gets it right on their first try is literally understood. What does it mean actually?

@hadley
Copy link
Member

@hadley hadley commented Nov 22, 2019

Hi @fannieywf,

This issue doesn't appear to be a bug report or a specific feature request, so it's more suitable for RStudio community.

Thanks!

@hadley hadley closed this as completed Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants