-
Notifications
You must be signed in to change notification settings - Fork 36.6k
Open
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytasksTask system issuesTask system issues
Milestone
Description
- VSCode Version: 1.4.0-insider 01a3f8
- OS Version: Windows 10 x64
I'm unable to get a message built up from several lines in the output. In the output below, I would like the message to contain the spec name, and the reason it failed. Any ideas if this is possible?
I have the following output from NUnit:
Project dotnettesting (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
NUnit .NET Core Runner 3.4.0
Copyright (C) 2016 Charlie Poole
Runtime Environment
OS Platform: Windows
OS Version: 10.0.10586
Runtime: win10-x64
Test Files
c:\projects\dotnettesting\bin\Debug\netcoreapp1.0\dotnettesting.dll
Errors and Failures
1) Failed : CalculatorSpec.ShouldFail
Expected: 0
But was: 3
at CalculatorSpec.ShouldFail() in c:\projects\dotnettesting\Calculator.spec.cs:line 12
2) Failed : CalculatorSpec.Will_Fail
Expected: 0
But was: 3
at CalculatorSpec.Will_Fail() in c:\projects\dotnettesting\Calculator.spec.cs:line 17
Run Settings
WorkDirectory: c:\projects\dotnettesting
Test Run Summary
Overall result: Failed
Test Count: 3, Passed: 1, Failed: 2, Inconclusive: 0, Skipped: 0
Failed Tests - Failures: 2, Errors: 0, Invalid: 0
Start time: 2016-07-22 19:16:50Z
End time: 2016-07-22 19:16:51Z
Duration: 0.362 seconds
Results saved as c:\projects\dotnettesting\TestResult.xml
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.
I have configured the following problem matcher:
"pattern": [
{
"regexp": "^\\d+\\) Failed.*$"
},
{
"regexp": "^(.*)$",
"message": 1
},
{
"regexp": "^(.*)$",
"message": 1
},
{
"regexp": "^at (.*\\(\\)) in (.*):line (\\d+)$",
"location": 3,
"file": 2
}
]maelvls, hendrics, yairchu, lejouson, mikelward and 21 more
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytasksTask system issuesTask system issues