datacamp / pythonwhat

Verify Python code submissions and auto-generate meaningful feedback messages.
http://pythonwhat.readthedocs.io/
GNU Affero General Public License v3.0
69 stars 31 forks source link

[WIP] Tests in docs #368

Closed hermansje closed 5 years ago

hermansje commented 5 years ago

During testing, calls to test_exercise are wrapped to capture the inputs and output. This is saved in a JSON file that is used to render a Jinja template in the docs.

TODO: make it a workflow so it works on readthedocs.

codecov[bot] commented 5 years ago

Codecov Report

Merging #368 into master will increase coverage by 0.01%. The diff coverage is 90.9%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #368      +/-   ##
==========================================
+ Coverage   94.79%   94.81%   +0.01%     
==========================================
  Files          27       27              
  Lines        2134     2141       +7     
==========================================
+ Hits         2023     2030       +7     
  Misses        111      111
Impacted Files Coverage Δ
pythonwhat/check_wrappers.py 100% <100%> (ø) :arrow_up:
pythonwhat/tasks.py 88.93% <88.46%> (-0.1%) :arrow_down:
pythonwhat/has_funcs.py 96.41% <92.85%> (+0.51%) :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 ee18a44...56e754e. Read the comment docs.