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

refactor: generate rust tests for code snippets in book #311

Merged
merged 1 commit into from
Apr 10, 2021

Conversation

baszalmstra
Copy link
Collaborator

Started working on improving the testability of our book before I add a lot of content to it. Not sure if you are doing the same @Wodann?

@baszalmstra baszalmstra self-assigned this Mar 16, 2021
@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #311 (221b796) into master (aece59e) will decrease coverage by 0.20%.
The diff coverage is 34.44%.

❗ Current head 221b796 differs from pull request most recent head 7304496. Consider uploading reports for the commit 7304496 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #311      +/-   ##
==========================================
- Coverage   80.80%   80.59%   -0.21%     
==========================================
  Files         258      259       +1     
  Lines       15480    15561      +81     
==========================================
+ Hits        12508    12541      +33     
- Misses       2972     3020      +48     
Impacted Files Coverage Δ
crates/mun_compiler/src/driver/config.rs 100.00% <ø> (ø)
crates/mun_compiler_daemon/src/lib.rs 0.00% <0.00%> (ø)
crates/mun_skeptic/src/lib.rs 0.00% <0.00%> (ø)
crates/mun_test/src/driver.rs 80.00% <70.00%> (+6.02%) ⬆️
crates/mun_compiler/src/driver.rs 59.16% <78.57%> (+0.83%) ⬆️
crates/mun_skeptic/src/runtime.rs 88.00% <88.00%> (ø)
crates/mun/src/ops/build.rs 77.58% <88.23%> (+0.22%) ⬆️
crates/mun_compiler/src/diagnostics.rs 100.00% <100.00%> (ø)
crates/mun_compiler/src/lib.rs 71.05% <100.00%> (ø)
crates/mun_runtime_capi/src/tests.rs 99.49% <100.00%> (+<0.01%) ⬆️
... and 6 more

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 aece59e...7304496. Read the comment docs.

@baszalmstra baszalmstra force-pushed the refactor/book/tests branch from 19a7971 to 9161775 Compare March 16, 2021 13:00
@baszalmstra baszalmstra force-pushed the refactor/book/tests branch from dad49b2 to d302a5a Compare April 10, 2021 15:33
@baszalmstra baszalmstra marked this pull request as ready for review April 10, 2021 15:33
@baszalmstra baszalmstra requested a review from Wodann April 10, 2021 15:33
@baszalmstra baszalmstra force-pushed the refactor/book/tests branch from d302a5a to 221b796 Compare April 10, 2021 15:53
.github/workflows/ci.yml Outdated Show resolved Hide resolved
crates/mun_compiler/src/driver.rs Outdated Show resolved Hide resolved
@baszalmstra baszalmstra changed the title refactor: mdbook mun plugin to not use panics refactor: generate rust tests for code snippets in book Apr 10, 2021
@baszalmstra baszalmstra force-pushed the refactor/book/tests branch from 221b796 to 7304496 Compare April 10, 2021 16:14
@baszalmstra baszalmstra merged commit aaa677a into mun-lang:master Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants