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

ATTENTION - [warning] No tests where executed - [error] Running Tests failed #656

Closed
waldo1001 opened this issue Jul 25, 2023 · 0 comments
Closed
Labels
documentation Improvements or additions to documentation

Comments

@waldo1001
Copy link
Collaborator

Attention

You might run into these errors in the ALOpsAppTest step:

##[warning]No tests where executed.
##[error]*** Running Tests failed.

This is by design:
your tests are failing because you are running the test-step but are not running any tests: the system expects (at least one) test(s), but there are none.

Intention:
You need to make sure to run tests, if no tests are run, you want to know!

Solution:

  • you can disable the step (you don't want to run tests anyway)
  • you can add a dummy test
  • make running tests conditional. example:
- task: ALOpsAppTest@1
      condition: and(succeeded(), eq(variables['skip_test_suite'], false))
      inputs:
        ...
@waldo1001 waldo1001 pinned this issue Jul 25, 2023
@HodorNV HodorNV locked as resolved and limited conversation to collaborators Jul 26, 2023
@waldo1001 waldo1001 added the documentation Improvements or additions to documentation label Jul 26, 2023
@waldo1001 waldo1001 unpinned this issue Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant