Skip to content

DOC: Update test running instructions - #6317

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:running-tests
Dec 5, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:running-tests

Conversation

@bashtage

@bashtage bashtage commented Dec 5, 2019

Copy link
Copy Markdown
Member

Provide a single preferred method to run tests

closes #4245

  • closes #xxxx
  • tests added / passed.
  • code/documentation is well formatted.
  • properly formatted commit message. See
    NumPy's guide.
Details

Notes:

  • It is essential that you add a test when making code changes. Tests are not
    needed for doc changes.
  • When adding a new function, test values should usually be verified in another package (e.g., R/SAS/Stata).
  • When fixing a bug, you must add a test that would produce the bug in master and
    then show that it is fixed with the new code.
  • New code additions must be well formatted. Changes should pass flake8. If on Linux or OSX, you can
    verify you changes are well formatted by running
    git diff upstream/master -u -- "*.py" | flake8 --diff --isolated
    
    assuming flake8 is installed. This command is also available on Windows
    using the Windows System for Linux once flake8 is installed in the
    local Linux environment. While passing this test is not required, it is good practice and it help
    improve code quality in statsmodels.
  • Docstring additions must render correctly, including escapes and LaTeX.

Provide a single preferred method to run tests

closes statsmodels#4245
@bashtage
bashtage merged commit 073e7c8 into statsmodels:master Dec 5, 2019
@bashtage
bashtage deleted the running-tests branch December 5, 2019 17:24
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 87.35% when pulling 24d6737 on bashtage:running-tests into 65e20f0 on statsmodels:master.

@codecov

codecov Bot commented Dec 5, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #6317 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6317   +/-   ##
=======================================
  Coverage   84.94%   84.94%           
=======================================
  Files         640      640           
  Lines      102047   102047           
  Branches    11198    11198           
=======================================
  Hits        86683    86683           
  Misses      12898    12898           
  Partials     2466     2466

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 65e20f0...24d6737. Read the comment docs.

@bashtage bashtage added this to the 0.11 milestone Dec 18, 2019
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.

Unify how we suggest running tests and decrease barrier to run them.

2 participants