[Bug]: Issue with running new tests in ballerina-cli #42339
Labels
Area/CLI-BuildTools
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Description
As part of the first task of #42124, I added tests for my additions to ballerina-cli #42236. However, those tests do not seem to run on the github actions and when I tried running
./gradlew :ballerina-cli:test
locally that too doesn't run them. Whats even more interesting is that they do indeed run when I comment out certain tests in thetestng.xml
file in ballerina-cli.Does not run them
https://scans.gradle.com/s/ph23glwnw5v4k/tests/overview?collapse-all&toggled=WyI6YmFsbGVyaW5hLWNsaTp0ZXN0LTAiXQ
Commenting out
TestCommandTest
in the testng.xml file runs my tests but they fail and so do some other tests.https://scans.gradle.com/s/jghd5wnt3ykc2/tests/overview?collapse-all&toggled=WyI6YmFsbGVyaW5hLWNsaTp0ZXN0LTAiXQ
2. Adding my tests in a serparate test tag doesn't run them either,
Here too when you comment out
TestCommandTest
, it runs the tests I need but they fail.Sometimes when I repeat
./gradlew clean :ballerina-cli:test --scan
it doesn't run any of the tests as well.In both of the above scenarios however, running the tests I wrote by specifying them using
./gradlew clean :ballerina-cli:test --scan --tests "io.ballerina.cli.diagnostics.AnnotateDiagnosticsTest"
runs them successfully.https://scans.gradle.com/s/fhcamynpswjou/tests/overview
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: