Skip to content

Conversation

titom73
Copy link
Contributor

@titom73 titom73 commented Mar 18, 2024

Description

Implement some cli enhancements:

  • Add --device and --test to anta nrfu to filter by tests or devices. Can be used multiple times.
  • Honor device and test filters at runner level: no undesired API calls are done towards devices
  • Implement --hide (error|failure|success|skipped) to anta nrfu hide test in results

Fixes #585

Example with device and test

image

Example of skip-error,failure,success

image

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@titom73 titom73 marked this pull request as ready for review March 20, 2024 15:02
@titom73 titom73 added framework-enhancement New feature or request Anta CLI All things around CLI labels Mar 20, 2024
@gmuloc gmuloc added this to the v1.0.0 milestone Mar 22, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@mtache mtache changed the title feat(anta.cli): Make anta nrfu CLI more consistent feat(anta.cli): anta nrfu enchancements: add --device and --test to filter tests and --hide(error|failure|success) to hide results. Mar 28, 2024
@mtache mtache changed the title feat(anta.cli): anta nrfu enchancements: add --device and --test to filter tests and --hide(error|failure|success) to hide results. feat(anta.cli): anta nrfu enchancements: add --device and --test to filter tests and --hide (error|failure|success|skipped) to hide results. Mar 29, 2024
@mtache mtache merged commit b2dadb1 into aristanetworks:main Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Anta CLI All things around CLI framework-enhancement New feature or request rn: feat(anta.cli)
Projects
None yet
3 participants