bmoers / sn-cicd

CICD Server for Service-Now
GNU Lesser General Public License v3.0
44 stars 35 forks source link

ATF Cases Not executing #41

Closed nci-snow-cicd closed 4 years ago

nci-snow-cicd commented 4 years ago

I have test cases setup for my project; the builds go through however test cases are not being executed. ATF is enabled on the instance and the ATF user is created with the correct roles; also ATF is launching as part of the build but not the test cases; I am getting the below:

Execute ATF: Wrapper execute Mocha Tests...

Execute ATF: Execution Issue √ >>>>> Passing for now, but no test cases specified!

1 passing (8ms) [17:29:28] Finished 'test' after 8.23 s

Task Ended 'test'

ZIP: test adding folder C:\Users\user1\AppData\Local\Temp\2\ac6be813-8f0a-4faf-b6b5-a556f205f1f3\test [17:29:28] Starting 'build'...

Starting Task 'build'

Build Done: Thanks for submitting [17:29:28] Finished 'build' after 230 ms

Task Ended 'build'

No config found for task 'build' ZIP: test 359935 total bytes ZIP: test archiver has been finalized and the output file descriptor has closed. Upload Results test Upload successful! Server responded with: File uploaded!

What am I missing?

nci-snow-cicd commented 4 years ago

Issue resolved; it was a rule issue on the service now instance - test cases were being added to an empty test suite automatically as to when they get created; the pipeline detects the suite with no cases in it; when removing the empty test suites from the package, the individual test cases go through fine and puppeteer launches along with all the execution steps and results collection fine. When assigning tests to a test suite; these work fine as well.