Skip to content

Make -m "not slow" be default for pytest #1327

@mhucka

Description

@mhucka

Is your feature request related to a use case or problem?

Currently, the Pytest configuration is such that the default is to run all tests, including slow ones, and the user has to add -m "not slow" to skip the slow tests. The slow tests are really slow in my environment, and on those times when I forget to use the flag, it wastes my time and makes me gnash my teeth. Most other projects flip the sense: the default is fast (because that's what devs want) and you add a flag to run the slow tests. IMHO we should do that in OpenFermion too.

When making this change, we should remember to make any necessary updates to the CI workflow too.

What solution or approach do you envision?

Update conftest.py to define a "slow" flag instead of a "not slow" flag, and make other changes as needed to make it work.

How urgent is this for you?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/devopsInvolves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions