Closed cjrace closed 6 months ago
Any reason for not setting up a workflow to run any tests on PRs?
Any reason for not setting up a workflow to run any tests on PRs?
The workflow I think we should set up is the general R CMD check, that runs the tests amongst other things rather than just having one for our automated tests.
Happy to add that here or in a separate branch with other workflows?
Closing in favour of a new PR
These are the first unit tests we've added so hopefully lay an example for how to add them.
Added basic validation (can be improved in future!) to the team_email argument in the support_panel() function.
I used usethis::use_test("support-panel") to set up the scripts for tests and then added a few simple test case emails in there for ones that should pass, and ones that should trigger the stop message.
Edit:
This adds R CMD Check as a way to run the tests and test the package more widely using github actions. This also adds a code coverage action using https://app.codecov.io/. That will likely only start running once this branch is merged into main