You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tasks currently don't touch files in the mentioned folder. They can be executed with ./gradlew integrationTest
Take these two tests for example: CrossClusterSearchTests.java , WhoAmITests.java
Task citest by definition covers all tests not covered in other test tasks, but when I run these two with ./gradlew citest --tests "..." these are the outputs:
> No tests found for given includes: [**/*.class](include rules) [**/*$*.class](exclude rules) [org.opensearch.security.CrossClusterSearchTests](--tests filter)
> No tests found for given includes: [**/*.class](include rules) [**/*$*.class](exclude rules) [org.opensearch.security.rest.WhoAmITests](--tests filter)
What is the expected behavior?
All the tests in the mentioned folder should run. Adding these tests should also boost coverage.
Solution
Add integrationTest task as part of test tasks
OR
Modify ciSecurityIntegrationTest task to also include these files.
The text was updated successfully, but these errors were encountered:
DarshitChanpura
changed the title
[BUG] [CI] Tests under src/integrationTest folder not being executing in CI
[BUG] [CI] Tests under src/integrationTest folder not being executed in CI checks
Jul 12, 2023
DarshitChanpura
added
triaged
Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
and removed
untriaged
Require the attention of the repository maintainers and may need to be prioritized
labels
Jul 12, 2023
Tests in folder https://github.com/opensearch-project/security/tree/main/src/integrationTest are not being run as part of current CI, after #2861 merge.
Steps to reproduce the behavior:
./gradlew listTasksAsJSON
lists all test tasks to be executedThese tasks currently don't touch files in the mentioned folder. They can be executed with
./gradlew integrationTest
Take these two tests for example: CrossClusterSearchTests.java , WhoAmITests.java
Task
citest
by definition covers all tests not covered in other test tasks, but when I run these two with./gradlew citest --tests "..."
these are the outputs:What is the expected behavior?
All the tests in the mentioned folder should run. Adding these tests should also boost coverage.
Solution
integrationTest
task as part of test tasksOR
ciSecurityIntegrationTest
task to also include these files.The text was updated successfully, but these errors were encountered: