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

test code is in unexpected places #19

Closed
jkahn opened this issue Jun 16, 2016 · 5 comments · Fixed by #154
Closed

test code is in unexpected places #19

jkahn opened this issue Jun 16, 2016 · 5 comments · Fixed by #154

Comments

@jkahn
Copy link

jkahn commented Jun 16, 2016

for example:
sourmash_lib/__init__.py is an unexpected place to find tests. Do they belong here, or can they be moved to a tests/test_*.py constellation?

Similarly, the files in sourmash_lib/ include test files, which are installed by pip; this is not appropriate for clients who are not developing the sourmash library itself. Probably, all of sourmash_tst_utils.py and sourmash_lib/test_*.py belong in a $repo/tests directory or they need to be renamed.

openjournals/joss-reviews#27

@ctb ctb added the wontfix label Jun 23, 2016
@ctb
Copy link
Contributor

ctb commented Jun 23, 2016

This is intentional! It can be helpful to have the tests around to debug installations.

@luizirber
Copy link
Member

We are starting to have a sizable collection of tests, it is probably better to collect them in a tests/ directory now.

@ctb
Copy link
Contributor

ctb commented Jan 15, 2017 via email

@betatim
Copy link
Contributor

betatim commented Jan 18, 2017

pip install khmer followed by py.test --pyargs khmer runs tests. Doesn't this mean we can have the best of both worlds? Ship tests and keep them in a subdirectory for tab-completion heaven?

@ctb
Copy link
Contributor

ctb commented Jan 18, 2017 via email

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 a pull request may close this issue.

4 participants