You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Object reference not set to an instance of an object.
I appreciate this isn't a useful error message, is there any way I can run trx in debug or with more verbose logging to get a better error message or diagnose the problem?
I've redacted the testName and computerName for privacy reasons, but the problem is that it errors trying to parse duration, which doesn't exist on this result node.
Line 135:
var elapsed = TimeSpan.Parse(result.Attribute("duration")!.Value);
is erroring,.
Replacing with:
var elapsed = TimeSpan.Parse(result.Attribute("duration")?.Value ?? "0");
Describe the Bug
When running trx I get:
I appreciate this isn't a useful error message, is there any way I can run trx in debug or with more verbose logging to get a better error message or diagnose the problem?
Version info:
trx version 0.4.5 (2024-08-08)
https://github.com/devlooped/dotnet-trx/releases/tag/v0.4.5
The text was updated successfully, but these errors were encountered: