https://github.com/nullean/vstest-pretty-logger
A VsTest logger implementation that formats the result in a more pleasing manner
https://github.com/nullean/vstest-pretty-logger
Last synced: about 1 month ago
JSON representation
A VsTest logger implementation that formats the result in a more pleasing manner
- Host: GitHub
- URL: https://github.com/nullean/vstest-pretty-logger
- Owner: nullean
- License: mit
- Created: 2020-10-02T14:10:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T10:19:48.000Z (over 1 year ago)
- Last Synced: 2024-05-22T21:11:12.175Z (about 1 year ago)
- Language: C#
- Size: 55.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Nullean.VsTest.Pretty.TestLogger
Install from [nuget.org](https://www.nuget.org/packages/Nullean.VsTest.Pretty.TestLogger/)
```
$ dotnet add package Nullean.VsTest.Pretty.TestLogger
```This logger is intended to replace the default console logger.
To do so create a `.runsettings` file```xml
```
Then make your `Test.csproj` (or `fsproj`!) aware of these `.runsettings`.
```xml
$(MSBuildProjectDirectory)\.runsettings
```
### Key goals
* Clear feedback during tests
* Notify of slow tests (taking longer then 2 seconds)
* Pretty print stacktraces beyond a see of red
* Grep for failures using `[FAIL]`
* Make sure all failures are printed at the end of the run.### Show me the goods
This is what running tests will look like once configured:
[](https://asciinema.org/a/363126?autoplay=1)
For comparison this is what `dotnet test` looks like out of the box **without** this logger
[](https://asciinema.org/a/363123?autoplay=1)