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
XUnit parser #84
Comments
Can you attach the mocha-test-results.xml file? |
Second example: |
Actually, XUnit is not implemented. But can be, I'll consider this a feature request. Note to self: |
Releasing a |
I have updated and verified my local violation-comments-to-bitbucket-cloud-command-line is 1.16 but when I try command I get Exception in thread "main" java.lang.IllegalArgumentException: No enum constant npx violation-comments-to-bitbucket-cloud-command-line -username ***** -password ***** -ws ****** -rs jenkins_test -prid 45 |
"It works on my machine" =)
And result: |
Does an xunit need to be filename.txt instead of .xml?
From: Tomas Bjerre <notifications@github.com>
Sent: Tuesday, March 3, 2020 1:38 PM
To: tomasbjerre/violations-lib <violations-lib@noreply.github.com>
Cc: Heidi Rechek <Heidi.Rechek@newbalance.com>; State change <state_change@noreply.github.com>
Subject: [EXT] Re: [tomasbjerre/violations-lib] XUnit parser (#84)
"It works on my machine" =)
npx violation-comments-to-bitbucket-cloud-command-line \
-cocf false -csfc false -cocc false -ccwasfc true -username tomasbjerre -password asdasdasd -ws tomasbjerre -rs violations-test -prid 1 \
-comment-template "
…-----------
`{{changedFile.filename}}`
**{{violation.rule}}**
{{violation.message}}
"\
-v "XUNIT" "." ".*txt$" "XUnit"
And result:
https://bitbucket.org/tomasbjerre/violations-test/pull-requests/1/some-crap/diff<https://urldefense.proofpoint.com/v2/url?u=https-3A__bitbucket.org_tomasbjerre_violations-2Dtest_pull-2Drequests_1_some-2Dcrap_diff&d=DwMCaQ&c=_qASontyk3EJYiKj1GV4iqlHLEhd5XAbNEPPhjtKDBU&r=IQPqzXrPdyVFYjoMBCdJ0ZtRjPBqNNAiCEgS3Lurr_w&m=bPefARvlSWf7IuCdEjD7rfHINuuCbwmKWO96ni0CUWQ&s=7SrcSPFmDA0-g-YLD2vxhTixFMFEeNbCqk9AadBrnPI&e=>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tomasbjerre_violations-2Dlib_issues_84-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAOHYKN5JPTFA3ELRKADMOB3RFVMAHA5CNFSM4K46ZFW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENU3IYY-23issuecomment-2D594130019&d=DwMCaQ&c=_qASontyk3EJYiKj1GV4iqlHLEhd5XAbNEPPhjtKDBU&r=IQPqzXrPdyVFYjoMBCdJ0ZtRjPBqNNAiCEgS3Lurr_w&m=bPefARvlSWf7IuCdEjD7rfHINuuCbwmKWO96ni0CUWQ&s=0QrYXUFUsrMz7RYs-rKN8S-k4wdsdsRkN6Nru-r4Akk&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOHYKN77ID7VWCJUUICIINLRFVMAHANCNFSM4K46ZFWQ&d=DwMCaQ&c=_qASontyk3EJYiKj1GV4iqlHLEhd5XAbNEPPhjtKDBU&r=IQPqzXrPdyVFYjoMBCdJ0ZtRjPBqNNAiCEgS3Lurr_w&m=bPefARvlSWf7IuCdEjD7rfHINuuCbwmKWO96ni0CUWQ&s=tlgjuFlXXnh84ZZM11BqRi8LdMWdgOshWdX7_igMY1U&e=>.
________________________________
Disclaimer: This email and its attachments are intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received.
Internet email is not a 100% secure transmission medium. Please understand and observe this lack of security when emailing us. Although we have taken steps to ensure that this email and its attachments are free from any virus, it is the recipient's sole responsibility, in keeping with good computing practice, to ensure that they are actually virus free.
|
No it can be any filename. |
Are you able to use that command against my mocha-test-results from the ticket?
From: Tomas Bjerre <notifications@github.com>
Sent: Tuesday, March 3, 2020 1:38 PM
To: tomasbjerre/violations-lib <violations-lib@noreply.github.com>
Cc: Heidi Rechek <Heidi.Rechek@newbalance.com>; State change <state_change@noreply.github.com>
Subject: [EXT] Re: [tomasbjerre/violations-lib] XUnit parser (#84)
"It works on my machine" =)
npx violation-comments-to-bitbucket-cloud-command-line \
-cocf false -csfc false -cocc false -ccwasfc true -username tomasbjerre -password asdasdasd -ws tomasbjerre -rs violations-test -prid 1 \
-comment-template "
…-----------
`{{changedFile.filename}}`
**{{violation.rule}}**
{{violation.message}}
"\
-v "XUNIT" "." ".*txt$" "XUnit"
And result:
https://bitbucket.org/tomasbjerre/violations-test/pull-requests/1/some-crap/diff<https://urldefense.proofpoint.com/v2/url?u=https-3A__bitbucket.org_tomasbjerre_violations-2Dtest_pull-2Drequests_1_some-2Dcrap_diff&d=DwMCaQ&c=_qASontyk3EJYiKj1GV4iqlHLEhd5XAbNEPPhjtKDBU&r=IQPqzXrPdyVFYjoMBCdJ0ZtRjPBqNNAiCEgS3Lurr_w&m=bPefARvlSWf7IuCdEjD7rfHINuuCbwmKWO96ni0CUWQ&s=7SrcSPFmDA0-g-YLD2vxhTixFMFEeNbCqk9AadBrnPI&e=>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tomasbjerre_violations-2Dlib_issues_84-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAOHYKN5JPTFA3ELRKADMOB3RFVMAHA5CNFSM4K46ZFW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENU3IYY-23issuecomment-2D594130019&d=DwMCaQ&c=_qASontyk3EJYiKj1GV4iqlHLEhd5XAbNEPPhjtKDBU&r=IQPqzXrPdyVFYjoMBCdJ0ZtRjPBqNNAiCEgS3Lurr_w&m=bPefARvlSWf7IuCdEjD7rfHINuuCbwmKWO96ni0CUWQ&s=0QrYXUFUsrMz7RYs-rKN8S-k4wdsdsRkN6Nru-r4Akk&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOHYKN77ID7VWCJUUICIINLRFVMAHANCNFSM4K46ZFWQ&d=DwMCaQ&c=_qASontyk3EJYiKj1GV4iqlHLEhd5XAbNEPPhjtKDBU&r=IQPqzXrPdyVFYjoMBCdJ0ZtRjPBqNNAiCEgS3Lurr_w&m=bPefARvlSWf7IuCdEjD7rfHINuuCbwmKWO96ni0CUWQ&s=tlgjuFlXXnh84ZZM11BqRi8LdMWdgOshWdX7_igMY1U&e=>.
________________________________
Disclaimer: This email and its attachments are intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received.
Internet email is not a 100% secure transmission medium. Please understand and observe this lack of security when emailing us. Although we have taken steps to ensure that this email and its attachments are free from any virus, it is the recipient's sole responsibility, in keeping with good computing practice, to ensure that they are actually virus free.
|
Yes |
npx violation-comments-to-bitbucket-cloud-command-line -username *** -password *** -ws ***** -rs jenkins_test -prid 43 -v "JUNIT" "." ".*/reports/mocha-test-results.xml$" "Junit" -keep-old-comm
ents true
Feb 27, 2020 10:42:00 AM se.bjurr.violations.lib.parsers.JUnitParser parseReportOutput
WARNING: Found failure, but failed to find fail line from stacktrace
The text was updated successfully, but these errors were encountered: