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

Write some tests #9

Open
njsmith opened this issue Jul 28, 2018 · 1 comment
Open

Write some tests #9

njsmith opened this issue Jul 28, 2018 · 1 comment

Comments

@njsmith
Copy link
Member

njsmith commented Jul 28, 2018

Doesn't have to be fancy, but we really should have some kind of testing story for this project. For example, we might test:

  • If you run cookiecutter, does it actually generate a project without errors?
  • In the resulting project, can you do setup.py sdist, and then do setup.py bdist_wheel in that sdist?
  • In the resulting project, can you actually run the test suite?
  • In the resulting project, can you build the docs without getting an error?

We don't have to do everything at once -- even just a single test to make sure cookiecutter can run would be a great start that we could build on.

Here's a pytest plugin to make it easy to run cookiecutter: https://github.com/hackebrot/pytest-cookies

Here's the tests for cookiecutter-pypackage, which might be useful for inspiration: https://github.com/audreyr/cookiecutter-pypackage/blob/master/tests/test_bake_project.py

@RatanShreshtha
Copy link
Member

I would like to work on that.

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

No branches or pull requests

2 participants