What type of reporter are you using with Playwright #91
Answered
by
ASaiAnudeep
armin-mehinovic
asked this question in
Q&A
-
Greetings, I am trying to send Playwright Report to Slack. The command I am running within GHA is the following: Playwright JUnit report is successfully generated, however on the command above, I am receiving the following error:
My plain config file is: {
"targets": [
{
"name": "slack",
"condition": "always",
"inputs": {
"url": "hiddenURL",
"publish": "failure-details",
"title": "Playwright Automation Report"
}
}
],
"results": [
{
"type": "junit",
"files": ["reporter/reports/results.xml"]
}
]
} Any assistance is helpful. This is how my XML JUnit report looks like: <testsuites id="" name="" tests="1" failures="0" skipped="0" errors="0" time="5.415">
<testsuite name="tests/01-Auth/b_authentication.spec.ts" timestamp="1663832971333" hostname="" tests="1" failures="0" skipped="0" time="5.196" errors="0">
<testcase name="Authentication should validate login form and signs in" classname="[Chrome] › tests/01-Auth/b_authentication.spec.ts:23:8 › Authentication › should validate login form and signs in" time="5.196">
</testcase>
</testsuite>
</testsuites> |
Beta Was this translation helpful? Give feedback.
Answered by
ASaiAnudeep
Sep 22, 2022
Replies: 1 comment 1 reply
-
You are passing the result file as an argument to the command. Instead pass the config file -npx test-results-reporter publish -c reporter/reports/results.xml
+npx test-results-reporter publish -c config.json |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
armin-mehinovic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are passing the result file as an argument to the command. Instead pass the config file