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

Make auto_test_package work with C++ tests #809

Yuri-M-Dias opened this issue Oct 24, 2018 · 1 comment

Make auto_test_package work with C++ tests #809

Yuri-M-Dias opened this issue Oct 24, 2018 · 1 comment


Copy link

@Yuri-M-Dias Yuri-M-Dias commented Oct 24, 2018

Hello, and thanks for the for awesome package!
I was wondering if there's any way to make the autotest function work with C++ tests too? I used use_catch() to add the tests to my project, however I need to rerun the tests for the C++ part manually, and can't rely on autotest for that.

From what I can gleam in the code (here) , it's not made for looking anywhere else that isn't tests/ and R/, so I don't think that there's a way of doing this now, correct? I can submit a PR for this if it's desirable/the correct place to do so.

Copy link

@hadley hadley commented Mar 28, 2019

It looks like this should be a fairly straightforward modification to auto_test_package() to add file.path(pkg$path, "src") to code_path if it exists. Do you want to have a go at implementing this?

@hadley hadley added the feature label Mar 28, 2019
@hadley hadley added this to the testthat 2.1.0 milestone Apr 1, 2019
@hadley hadley closed this in 6ca6ae2 Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants