question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken HTML logger?

See original GitHub issue

Description

I’m trying to use the HTML logger, but it fails with both dotnet test and dotnet vstest.

Steps to reproduce

I simply run dotnet test or dotnet vstest.

Expected behavior

An HTML test report is generated.

Actual behavior

When I run dotnet test --logger html or dotnet vstest <path to DLL> --logger:html:

Html Logger Error : Could not find a part of the path '<path to test folder>\TestResults\TestResult_<user name>_<computer name>_20200204_163900.xml'.

Environment

  • Windows 10, 1909
  • dotnet --version says 3.1.100

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
0xcedcommented, Apr 15, 2020

I had the exact same issue (on macOS with xUnit). My understanding is that the html logger needs to write and intermediary xml file inside the TestResults directory but doesn’t ensure that the TestResults exists. I worked around the problem by manually creating the TestResults directory before running the tests.

0reactions
nohwndcommented, Jun 15, 2020

Still can’t repro. Do you have a call stack?

Read more comments on GitHub >

github_iconTop Results From Across the Web

logging - HTML Logger in python
But for HTML logging, I am having only print statements and stderr . My query : Is there someway that HTMLTestRunner.HTMLTestRunner will have ......
Read more >
simple html logger that appends into a page's body node
simple html logger that appends it self to a page's body. based on the idea of http://www.songho.ca/misc/logger/files/Logger.js. written with ES6 syntax and ...
Read more >
W3C Log Validator
Find the most popular invalid documents, broken links, etc., and prioritize the work to ... The Log Validator was first written with Validation...
Read more >
Logging Cookbook — Python 3.11.4 documentation
This page contains a number of recipes related to logging, which have been found useful in the past. For links to tutorial and...
Read more >
Network Error Logging - HTTP - MDN Web Docs
Network Error Logging is a mechanism that can be configured via the NEL HTTP response header. This experimental header allows websites and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found