Skip to content

TST: parametrize tests instead of using for loops - #5086

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
jbrockmendel:param
May 8, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
jbrockmendel:param

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

For any skeptics, recall the advantage of parametrizing is that if a particular case fails, a) the parameter value that fails is included in the test output and b) subsequent tests are still run, so we get information on all failing cases.

@coveralls

coveralls commented Sep 2, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 84.595% when pulling 509e271 on jbrockmendel:param into 116cdd8 on statsmodels:master.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Travis fail is from before #5080. Can avoid rebase/CI clog?

@codecov

codecov Bot commented Sep 12, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5086 into master will decrease coverage by <.01%.
The diff coverage is 98.41%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5086      +/-   ##
=========================================
- Coverage    82.1%   82.1%   -0.01%     
=========================================
  Files         587     587              
  Lines       93446   93439       -7     
  Branches    10372   10344      -28     
=========================================
- Hits        76722   76715       -7     
  Misses      14327   14327              
  Partials     2397    2397
Impacted Files Coverage Δ
statsmodels/stats/tests/test_multi.py 100% <100%> (ø) ⬆️
statsmodels/tsa/tests/test_arima_process.py 98.92% <100%> (-0.02%) ⬇️
statsmodels/stats/tests/test_proportion.py 99.32% <100%> (ø) ⬆️
statsmodels/tsa/tests/test_stattools.py 98.83% <100%> (-0.01%) ⬇️
statsmodels/stats/tests/test_qsturng.py 100% <100%> (ø) ⬆️
statsmodels/tools/tests/test_eval_measures.py 100% <100%> (ø) ⬆️
statsmodels/stats/tests/test_corrpsd.py 100% <100%> (ø) ⬆️
statsmodels/stats/tests/test_moment_helpers.py 95.23% <89.47%> (-0.32%) ⬇️

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 116cdd8...509e271. Read the comment docs.

@bashtage

bashtage commented May 5, 2019

Copy link
Copy Markdown
Member

Looks OK to go in. Squash and rebase.

@bashtage

bashtage commented May 5, 2019

Copy link
Copy Markdown
Member

Assuming it passes.

@jbrockmendel
jbrockmendel force-pushed the param branch 3 times, most recently from 5cfc842 to 509e271 Compare May 7, 2019 16:27
TST: parametrize tests

TST: parametrize test

TST: parametrize test

TST: parametrize tests

TST: parametrize tests

TST: parametrize tests
@bashtage
bashtage merged commit 846ab99 into statsmodels:master May 8, 2019
@jbrockmendel
jbrockmendel deleted the param branch May 8, 2019 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants