Skip to content

Update hatch run test to support arguments #408

@JP-Ellis

Description

@JP-Ellis

Have you read the Contributing Guidelines on issues?

Description

Hatch scripts have a placeholder for additional arguments. For example, if wanting to run only a subset of all tests, it should be possible to do:

hatch run test tests/v3

Hatch supports this by looking for {arg} or {arg:<default>} in the script's string.

While this was included in the lint rules, it was unfortunately omitted from the test rules.

Completion of this requires:

  • Fixing the test script in the default environment
  • Fixing the test script in the test environment matrix

Has this been requested on Canny?

No response

Motivation

This issue was identified in #395 (comment).

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Pact Python myself.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions