Skip to content

feat: Add a helper to run both R and Rust tests with devtools::test() #539

Description

@JosephBARBIERDARNAL

It would be useful to have an exported helper / hook (I'm unsure how those are called), e.g. devtools::test()/rextendr::test(), that runs both the Rust and R test suites for an extendr package.

Currently this requires running two commands:

processx::run("cargo", "test", wd = "src/rust", echo = TRUE)
devtools::test()

A single command would make the development workflow more convenient and provide a standard way for extendr packages to run their complete test suite. This could either be devtools::test() or rextendr::test(), but the latter is less good IMO.

Related discussion: #509.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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