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
Describe the bug
I haven't found any way how to add an information into xml report ( tag) in dotnet. Console.WriteLine() writes message to console output but not to xml report. GaugeMessages.WriteMessage() also does not work (no console output, no xml output).
To Reproduce
Steps (or project) to reproduce the behavior:
Initialise a gauge project
Install xml-report
Run the gauge command
See error
$ gauge init csharp
$ gauge run specs
Logs <testsuites> <testsuite id="1" tests="1" failures="0" package="C:\Users\Josef.Seckar\Documents\GaugeTests\my-tests\specs\Test1.spec" time="3.006" timestamp="2021-05-03T14:56:10" name="Specification Heading" errors="0" hostname="BRN-JSECKAR1"> <properties></properties> <testcase classname="Specification Heading" name="Power" time="3.006"></testcase> <system-out></system-out> <system-err></system-err> </testsuite> <testsuite id="2" tests="2" failures="1" package="C:\Users\Josef.Seckar\Documents\GaugeTests\my-tests\specs\Test2.spec" time="0.084" timestamp="2021-05-03T14:56:10" name="Specification Heading" errors="0" hostname="BRN-JSECKAR1"> <properties></properties> <testcase classname="Specification Heading" name="Voltage" time="0.084"> <failure message="Read voltage.
Step Execution Failure: 'Expected value to be between 4.5 and 5.5, but found 4.491639574752953.'" type="Read voltage.
Step Execution Failure: 'Expected value to be between 4.5 and 5.5, but found 4.491639574752953.'"> at FluentAssertions.Execution.FallbackTestFramework.Throw(String message)
 at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
 at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
 at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc)
 at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
 at FluentAssertions.Numeric.NumericAssertions1.BeInRange(T minimumValue, T maximumValue, String because, Object[] becauseArgs)
at testing.Voltage.ReadVoltage() in C:\Users\Josef.Seckar\Documents\GaugeTests\my-tests\Voltage.cs:line 18
`
Expected behavior
A text written by Console.WriteLine() (GaugeMessages.WriteMessage()) shall be displayed in <system-out> tag.
Versions:
gauge -v
Gauge version: 1.1.8
Commit Hash: b1501f4
Plugins
-------
dotnet (0.3.1)
html-report (4.0.12)
screenshot (0.0.1)
xml-report (0.2.3)
**Additional context**
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I haven't found any way how to add an information into xml report ( tag) in dotnet. Console.WriteLine() writes message to console output but not to xml report. GaugeMessages.WriteMessage() also does not work (no console output, no xml output).
To Reproduce
Steps (or project) to reproduce the behavior:
Logs
<testsuites> <testsuite id="1" tests="1" failures="0" package="C:\Users\Josef.Seckar\Documents\GaugeTests\my-tests\specs\Test1.spec" time="3.006" timestamp="2021-05-03T14:56:10" name="Specification Heading" errors="0" hostname="BRN-JSECKAR1"> <properties></properties> <testcase classname="Specification Heading" name="Power" time="3.006"></testcase> <system-out></system-out> <system-err></system-err> </testsuite> <testsuite id="2" tests="2" failures="1" package="C:\Users\Josef.Seckar\Documents\GaugeTests\my-tests\specs\Test2.spec" time="0.084" timestamp="2021-05-03T14:56:10" name="Specification Heading" errors="0" hostname="BRN-JSECKAR1"> <properties></properties> <testcase classname="Specification Heading" name="Voltage" time="0.084"> <failure message="Read voltage.
Step Execution Failure: 'Expected value to be between 4.5 and 5.5, but found 4.491639574752953.'" type="Read voltage.
Step Execution Failure: 'Expected value to be between 4.5 and 5.5, but found 4.491639574752953.'"> at FluentAssertions.Execution.FallbackTestFramework.Throw(String message)
 at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
 at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
 at FluentAssertions.Execution.AssertionScope.FailWith(Func
1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc)
 at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
 at FluentAssertions.Numeric.NumericAssertions
1.BeInRange(T minimumValue, T maximumValue, String because, Object[] becauseArgs) at testing.Voltage.ReadVoltage() in C:\Users\Josef.Seckar\Documents\GaugeTests\my-tests\Voltage.cs:line 18`
Expected behavior
A text written by Console.WriteLine() (GaugeMessages.WriteMessage()) shall be displayed in
<system-out>
tag.Versions:
The text was updated successfully, but these errors were encountered: