testthat icon indicating copy to clipboard operation
testthat copied to clipboard

`skip()` without `message`

Open ms609 opened this issue 2 years ago • 0 comments

Currently, if I include the line skip() in a testthat test file, I see

Error in `paste0(message, collapse = "\n")`: argument "message" is missing, 
  with no default

I had expected skip() to simply skip the test without specifying a message.

Is it possible to specify a more user-friendly behaviour for skip() if no message parameter is passed, either by specifying a NULL default, or by using an if (missing(message)) check? I'd be happy to suggest a PR if helpful.

ms609 avatar Mar 04 '22 08:03 ms609