Skip to content

A new command: poetry test #3386

@ThatXliner

Description

@ThatXliner
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Implement a poetry test command.

Background

I've been using Makefiles (and sometimes just snippets of code) to manage testing over CIs and I'd like a poetry test command to manage centralize this (for some systems don't have GNU Make).

Demonstration

To configure it, there should be a new section in the pyproject.toml stating what poetry test does, like this:

[tool.poetry.test]
command = "pytest -vvv --cov=package_name"
after_success = 'echo "Yay! All tests have passed!" '

Implementation

Basically, poetry will run that command in a virtual environment (which does not include the package itself) that has installed all the dependancies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions