Skip to content

Make it easier to run tests for the first time, with nicer error messages #5937

@bertilhatt

Description

@bertilhatt

What's the problem this feature will solve?

As a new contributor, I cloned the repository and tried to run a test on master. I was hit with hundreds of error: 15k lines of error messages, when executing either pytest -n 4, or tox -e py37.

I suspect that the bulk of these is due to missing dependencies but it’s not clear what I need to do from there:

  • I followed the first paragraph of the guideline;
  • the messages are over-whelming and unclear;
  • there are no requirements.txt or similar to follow.

Describe the solution you'd like

If the problem is a lack of dependencies, a clearer (and shorter) error message and interrupting the test.

That was, when a new contributor tries to set up a local version, they can have green tests before they contribute, and test locally.

Alternative Solutions

Another solution would be to detect and install requirements as the test go.

Additional context

New contributor, part of an introduction event

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: testsTesting and related thingsauto-lockedOutdated issues that have been locked by automationtype: docsDocumentation relatedtype: maintenanceRelated to Development and Maintenance Processes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions