Skip to content

Update config file in anticipation of future testing updates - #6449

Merged
bsipocz merged 3 commits into
astropy:masterfrom
drdavella:fix-norecursedirs
Sep 8, 2017
Merged

bsipocz merged 3 commits into
astropy:masterfrom
drdavella:fix-norecursedirs

Conversation

@drdavella

Copy link
Copy Markdown
Contributor

In anticipation of eventually being able to invoke tests directly from pytest, it is necessary to update setup.cfg to make sure all top-level directories that we want to ignore during testing are actually being ignored.

Also, according to the pytest documentation we need to add the --pyargs command line argument since our tests are integrated with application code.

These changes are based on work from #6437. Even if that PR is not integrated as-is, this is a necessary update.

@astropy-bot

astropy-bot Bot commented Aug 16, 2017 •

Copy link
Copy Markdown

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labelled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

@mhvk

mhvk commented Aug 17, 2017

Copy link
Copy Markdown
Contributor

This looks all OK to me as well; not sure a changelog entry is needed.

@pllim

pllim commented Aug 17, 2017

Copy link
Copy Markdown
Member

Re: change log. I agree that it is not needed.

@mhvk

mhvk commented Aug 19, 2017

Copy link
Copy Markdown
Contributor

@drdavella - I think this is also ready, though could you remove the changelog entry here as well?

@bsipocz, @astrofrog - if you can have a look that would be great, though I think it is not essential as this seems quite obviously correct.

Comment thread CHANGES.rst Outdated

- Fixed issue running doctests with pytest>=3.2. [#6423]

- In anticipation of supporting test runs directly from ``pytest``, fixed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The issue with this changelog entry is that it means that we are definitely committing to supporting running tests directly from pytest. Can you write the changelog entry in a way that doesn't imply this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This has been fixed.

Comment thread setup.cfg Outdated
[pytest]
minversion = 2.8
norecursedirs = ".tox" "build" "docs[\/]_build" "docs[\/]generated" "astropy[\/]extern" "astropy[\/]utils[\/]compat[\/]futures"
norecursedirs = ".*" "*.egg-info" "build" "docs[\/]_build" "docs[\/]generated" "astropy[\/]extern" "astropy[\/]utils[\/]compat[\/]futures" "astropy_helpers"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This could probably be simplified using testpaths (requires pytest 2.8+, which probably explains why it was not used before).

@pllim

pllim commented Sep 8, 2017

Copy link
Copy Markdown
Member

Need a rebase to resolve conflict. FYI.

@bsipocz

bsipocz commented Sep 8, 2017

Copy link
Copy Markdown
Member

@pllim - I'm on it. Doing the rebase now, and will merge once it's pushed back up.

@bsipocz
bsipocz merged commit 6277530 into astropy:master Sep 8, 2017
bsipocz added a commit that referenced this pull request Sep 8, 2017
Update config file in anticipation of future testing updates
@drdavella
drdavella deleted the fix-norecursedirs branch September 8, 2017 18:30
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.

6 participants