Skip to content

auto_test_package chokes on tests/testthat directory #138

@doogiecode

Description

@doogiecode

Hi there, I just started using testthat and am having a problem when I try to run my tests continuously while I work. I followed the instructions on the Github readme file and set up my tests to all be contained in a directory named testthat in the tests directory of my package. However, when I try to run auto_test_package from the root directory of my package I get this:

> auto_test_package(".")
Public sweetr tests : .....


Error in digest(path, file = TRUE) : 
  The specified pathname is not a file: /Users/proffitt/Code/R/sweetr-package/sweetr/tests/testthat

Is this expected? The command dies at that point and goes back to the R prompt. Any insight would be appreciated.

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