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

New function 'Reset_SOILWAT2_after_UnitTest' for unit testing #114

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

dschlaep
Copy link
Member

  • close Define function to reset global SOILWAT2 variables #113

  • function 'Reset_SOILWAT2_after_UnitTest' reads in data from all input
    files and initializes all variables as if SOILWAT2 would start up --
    somewhat expensive but thorough (time to run current unit tests
    increased from about 10 ms to about 30 ms)

  • call 'Reset_SOILWAT2_after_UnitTest' at the end of each TEST

- function 'Reset_SOILWAT2_after_UnitTest' reads in data from all input
files and initializes all variables as if SOILWAT2 would start up --
somewhat expensive but thorough (time to run current unit tests
increased from about 10 ms to about 30 ms)

- call 'Reset_SOILWAT2_after_UnitTest' at the end of each TEST
@codecov-io
Copy link

codecov-io commented Dec 20, 2017

Codecov Report

Merging #114 into master will increase coverage by 0.32%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #114      +/-   ##
=========================================
+ Coverage   29.48%   29.8%   +0.32%     
=========================================
  Files          21      21              
  Lines        3419    3419              
  Branches      577     577              
=========================================
+ Hits         1008    1019      +11     
+ Misses       2221    2215       -6     
+ Partials      190     185       -5
Impacted Files Coverage Δ
rands.c 34.86% <0%> (+0.65%) ⬆️
SW_SoilWater.c 22.75% <0%> (+1.79%) ⬆️
mymemory.c 77.77% <0%> (+7.4%) ⬆️
SW_Files.c 62.06% <0%> (+8.62%) ⬆️

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 96ee5ed...9d1d335. Read the comment docs.

@dschlaep dschlaep merged commit b74a833 into master Dec 20, 2017
@dschlaep dschlaep deleted the bugfix_113 branch December 20, 2017 19:14
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.

Define function to reset global SOILWAT2 variables
2 participants