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

feat(cli): make resourcename optional for run command #3242

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

schoren
Copy link
Collaborator

@schoren schoren commented Oct 11, 2023

This PR updates CLI to allow running tests and testsuites without having to specify the resourceName as an argument.

For example:

tractest run -f ./test-suite.yaml # this works
tractest run -f ./single-test.yaml # this works

tractest run testsuite -f ./single-test.yaml # this will not pass validation
tractest run test -f ./test-suite.yaml # this will not pass validation

tractest run testsuite -f ./test-suite.yaml # this still works
tractest run test -f ./single-test.yaml # this  still works

Changes

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

https://www.loom.com/share/6eb5a28ff0024cb2a28edc46d8e140d3

@schoren schoren merged commit 6c6cec5 into main Oct 11, 2023
38 checks passed
@schoren schoren deleted the cli-run-optional-resourceName branch October 11, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants