datacamp / testwhat

Write Submission Correctness Tests for R exercises
https://datacamp.github.io/testwhat
GNU Affero General Public License v3.0
33 stars 24 forks source link

Use envir_prep for exercise checking #233

Open schloerke opened 4 years ago

schloerke commented 4 years ago

Fixes https://github.com/rstudio/learnr/issues/202

The next release of learnr (v0.10.0) will provide a copy of the environment before the user executed their code envir_prep to the exercise checker function (ex: testwhat_learnr).

Using this environment, checking code will be able to find their setup code.

Disclaimers:

cc @matthew-brett @reuning

codecov[bot] commented 4 years ago

Codecov Report

Merging #233 into master will increase coverage by <.01%. The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #233      +/-   ##
==========================================
+ Coverage   92.11%   92.11%   +<.01%     
==========================================
  Files          47       47              
  Lines        2586     2588       +2     
==========================================
+ Hits         2382     2384       +2     
  Misses        204      204
Impacted Files Coverage Δ
R/utils-learnr.R 0% <0%> (ø) :arrow_up:
R/test-exercise.R 88.37% <100%> (+0.56%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2f63f96...eba2090. Read the comment docs.