Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hatch run test to support arguments #408

Closed
4 tasks done
JP-Ellis opened this issue Oct 6, 2023 · 1 comment · Fixed by #409
Closed
4 tasks done

Update hatch run test to support arguments #408

JP-Ellis opened this issue Oct 6, 2023 · 1 comment · Fixed by #409
Assignees
Labels
smartbear-supported This issue is supported by SmartBear

Comments

@JP-Ellis
Copy link
Contributor

JP-Ellis commented Oct 6, 2023

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.
@JP-Ellis JP-Ellis added the status:triage An item which has been recently created and needs to be triaged label Oct 6, 2023
@JP-Ellis JP-Ellis moved this to 📝 Backlog in Pact Python Oct 6, 2023
@JP-Ellis JP-Ellis mentioned this issue Oct 6, 2023
@JP-Ellis JP-Ellis self-assigned this Oct 6, 2023
@JP-Ellis JP-Ellis removed the status:triage An item which has been recently created and needs to be triaged label Oct 6, 2023
@JP-Ellis JP-Ellis moved this from 📝 Backlog to 🛠️ In Progress in Pact Python Oct 6, 2023
@JP-Ellis JP-Ellis added the smartbear-supported This issue is supported by SmartBear label Oct 6, 2023
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-1365). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.

See our documentation for more information.

@github-project-automation github-project-automation bot moved this from 🛠️ In Progress to ✅ Completed in Pact Python Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smartbear-supported This issue is supported by SmartBear
Projects
Status: ✅ Completed
Development

Successfully merging a pull request may close this issue.

1 participant