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

function that counts the number of tests coming from a test file #14

Open
tbrown122387 opened this issue Sep 23, 2020 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tbrown122387
Copy link
Owner

tbrown122387 commented Sep 23, 2020

Write function that counts the number of tests coming from a test file that **does not make use of testthat. This will circumvent librarying in all the testthat functions prematurely. It will also be useful for test-makers who need to count the number of points total to manually enter into a gradescope assignment. Right now, this is a one-liner

  number_questions <- length(testthat::test_file(your_test_file, 
                                                 reporter = "minimal"))

but we'd like to remove the dependency on testthat, and have it look something like this

  number_questions <- getNumQuestions(your_test_file)
@tbrown122387 tbrown122387 added enhancement New feature or request good first issue Good for newcomers labels Sep 23, 2020
stcase added a commit to stcase/gradeR that referenced this issue Mar 2, 2021
in the output of calcGrades. This will need to be done differently
if someone takes on tbrown122387#14, but I think it's a small enough change and
is nice to have.

resolves tbrown122387#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant