Skip to content

Write some tests #9

@njsmith

Description

@njsmith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions