mikldk / roxytest

Inline testthat tests with roxygen2
95 stars 3 forks source link

File was not created by roxytest #20

Closed jrdnmdhl closed 3 years ago

jrdnmdhl commented 3 years ago

Description of Issue

When running devtools::document or roxygen2::roxygenize to generate roxytest files, roxytest complains that the test files weren't created by roxytest even though they were, have not been modified, and return true when calling made_by_roxytest on them. The problem is temporarily solved by manually deleting the roxytest created files, but the error recurs if called again and previously generated test files are present. Not sure if this is the expected behavior and I am missing something, but it seems like it might be an issue.

Reproducible Example

  1. Clone repository: git clone git@github.com:PolicyAnalysisInc/herosurv.git
  2. Change directory into package folder: cd herosurv
  3. Checkout the specific commit that reproduces the error: git checkout 4a981b7f4fca94ae2d7fdd93bf618059828679f2
  4. Run R: R
  5. Attempt to generate tests and see error: roxygen2::roxygenize()

Version Info

mikldk commented 3 years ago

@jrdnmdhl Thanks for reporting this.

I hope this is now fixed by 991e7bf ^^. Would you mind testing it and report back?

jrdnmdhl commented 3 years ago

Yes, that did it. Thank you.