Skip to content

Fix merge-nunit-xml issue#1814

Merged
AlexeyBudynkov merged 1 commit intomasterfrom
fix-merge-nunit-xml
Feb 1, 2022
Merged

Fix merge-nunit-xml issue#1814
AlexeyBudynkov merged 1 commit intomasterfrom
fix-merge-nunit-xml

Conversation

@AnatolyPristensky
Copy link
Copy Markdown
Contributor

Fix merge-nunit-xml issue

Related issue: 1208

@AlexeyBudynkov
Copy link
Copy Markdown

AlexeyBudynkov commented Feb 1, 2022

This PR has been tested.
Output before:
...
Current test status: Done!
Total scenarios: 13
13 passed
0 failed
Total steps: 28

Downloaded artifacts to /Users/PC/Downloads/Debug/nunit_xml_zip.zip
Error: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document

Further error details: For help, please send both the reported error above and the following environment information to us by going to https://appcenter.ms/apps and opening a support ticket (using the help menu in the upper right corner of the screen)

Environment: darwin
App Upload Id: konstantin-bobkov/Horoscope
Timestamp: 1643201964046
Operation: RunUITestsCommand
Exit Code: 3
User Email: v-abudynkov@microsoft.com
User Name: v-abudynkov-microsoft.com
User Id: 465cdc15-e141-48c1-bc16-333e57fa382f

Output after:
...
Current test status: Done!
Total scenarios: 13
13 passed
0 failed
Total steps: 28

Downloaded artifacts to /Users/PC/Downloads/Debug/nunit_xml_zip.zip

Test Report: https://appcenter.ms/users/konstantin-bobkov/apps/Horoscope/test/series/launch-tests/runs/572a2cf1-2fc9-469e-a74f-358fd942fc52

Also an XML-file has written locally.

@AlexeyBudynkov AlexeyBudynkov self-requested a review February 1, 2022 12:23
@AlexeyBudynkov AlexeyBudynkov merged commit 9974d6d into master Feb 1, 2022
@AlexeyBudynkov AlexeyBudynkov deleted the fix-merge-nunit-xml branch February 1, 2022 12:26
AnatolyPristensky pushed a commit that referenced this pull request Mar 14, 2023
* Fix merge-nunit-xml issue

Using the option  --merged-file-name "output.xml" --test-output-dir JunitTestResult, facing the below issue, i can see .zip was was downloaded but merged files is not working!

Downloaded artifacts to JunitTestResult\junit_xml_zip.zip
Error: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document

Similer issue with nunit for xamarin uitest: #1814

* Fix merged-file-name issue 

Using the option merged-file-name "output.xml" --test-output-dir JunitTestResult, facing the below issue, i can see .zip was was downloaded but merged files is not working!

Downloaded artifacts to JunitTestResult\junit_xml_zip.zip

Error: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document

* Fixed error Delete ···· prettier/prettier

/home/vsts/work/1/s/src/commands/test/run/appium.ts
62:5 error Delete ···· prettier/prettier
63:1 error Delete ···· prettier/prettier

Issue was with file format, fix it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants