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

unit tests for calculate_vp() #362

Merged
merged 40 commits into from
Jun 10, 2021
Merged

unit tests for calculate_vp() #362

merged 40 commits into from
Jun 10, 2021

Conversation

adokter
Copy link
Owner

@adokter adokter commented Apr 17, 2020

  • refactor of input argument checks using assert_that()
  • new input argument warnings to enable/suppress vol2bird warnings (add to NEWS.md)
  • unit tests that check parsing of arguments to vol2bird

@adokter adokter added the sprint label May 27, 2021
@peterdesmet peterdesmet changed the base branch from develop to master May 27, 2021 16:00
@peterdesmet peterdesmet added this to the 0.6.0 milestone May 28, 2021
@adokter
Copy link
Owner Author

adokter commented Jun 7, 2021

/document

@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2021

Codecov Report

Merging #362 (55f716b) into master (f13bb76) will increase coverage by 1.43%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #362      +/-   ##
==========================================
+ Coverage   40.43%   41.87%   +1.43%     
==========================================
  Files          54       54              
  Lines        3007     2992      -15     
==========================================
+ Hits         1216     1253      +37     
+ Misses       1791     1739      -52     
Impacted Files Coverage Δ
R/bioRad-deprecated.R 4.06% <0.00%> (ø)
R/calculate_vp.R 0.00% <0.00%> (ø)
R/vp.R 100.00% <0.00%> (ø)
R/map.R 0.00% <0.00%> (ø)
R/rcs.R 100.00% <0.00%> (ø)
R/scan.R 100.00% <0.00%> (ø)
R/vpts.R 98.41% <0.00%> (ø)
R/param.R 100.00% <0.00%> (ø)
R/get_param.R 100.00% <0.00%> (ø)
R/get_quantity.R 97.56% <0.00%> (ø)
... 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 f13bb76...55f716b. Read the comment docs.

@adokter
Copy link
Owner Author

adokter commented Jun 7, 2021

@peterdesmet this one is ready for re-review. Most tests only run locally, because they require a running Docker container

Copy link
Collaborator

@peterdesmet peterdesmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adokter, I have:

  • Clarified the documentation + use Markdown
  • Standardized the error messsages
  • Added the skip_if_no_docker() function
  • Improved readability of tests
  • Added test for errors on input arguments

3 questions are remaining:

  • range_min: can we allow >=0 rather than current >0
  • range_max: can we allow >=0 rather than current >0
  • n_layer: default is 20L, should that be 20?

tests/testthat/test-calculate_vp.R Outdated Show resolved Hide resolved
@peterdesmet peterdesmet merged commit a016453 into master Jun 10, 2021
@peterdesmet peterdesmet deleted the calculate_vp branch June 10, 2021 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants