Skip to content
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

[dotnet-trx] Cannot read property 'match' of undefined #82

Closed
junhao2x opened this issue Mar 22, 2021 · 2 comments · Fixed by #86
Closed

[dotnet-trx] Cannot read property 'match' of undefined #82

junhao2x opened this issue Mar 22, 2021 · 2 comments · Fixed by #86

Comments

@junhao2x
Copy link

Some logs:

Run dorny/[email protected]
with:
name: test-results
reporter: dotnet-trx
path: TestResults/*.trx
list-suites: all
list-tests: all
max-annotations: 10
fail-on-error: true
token: ***
env:
NUGET: D:\Action-runner\intel-innersource\001_work_tool\nuget.exe\5.8.1\x64/nuget.exe
Action was triggered by pull_request: using SHA from head of source branch
Check runs will be created with SHA=30d3bbd87740e62cf5586edaa9a64fa0605ddf1c
Listing all files tracked by git
Found 964 files tracked by GitHub
Using test report parser 'dotnet-trx'
Creating test report test-results
Error: Cannot read property 'match' of undefined


*And this is the summary of the test result (since I know some Marketplace Actions need users to specify the upper bound of the number of passed/failed cases) : *

Test Run Failed.
Total tests: 139
Passed: 65
Failed: 71
Skipped: 3
Total time: 2.0720 Minutes


I was running an old project, and I know it uses a lot of things from pre-2015. So the reason may be that something is too old to be compatible with your stuffs. Let me know what you need from me, or can you repro the issue.

Thanks,

Junhao Zhang "Freddie"

@dorny
Copy link
Owner

dorny commented Mar 23, 2021

@junhao2x Thanks for reporting the issue.
Looking at the code I guess that duration attribute of <UnitTestResult> was not set.
To be sure, would be possible to upload here the *.trx file ?

@junhao2x
Copy link
Author

Here you are. I have to put it into a zip otherwise GitHub popes me error says they don't support that format (*.trx)
trx.zip

@dorny dorny closed this as completed in #86 Mar 24, 2021
dorny added a commit that referenced this issue Mar 24, 2021
Fixes #82: net-trx parser handles missing duration attribute
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 a pull request may close this issue.

2 participants