Closed ssg47 closed 5 years ago
@ssg47 I wasn't able to see this error, but the the other issue on tests disappearing seems to be reproducible. I will see if this occurs after we fix the other issue
This issue has been verified and found fixed with the latest nightly of visual-studio.
Expected behavior
No exceptions should be generated by the plugin after a successful build on value spec and step implementation files.
Actual behavior
System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type Gauge.VisualStudio.TestAdapter.TestExecutionEvent. Encountered invalid character ' '. ---> System.FormatException: Encountered invalid character ' '. at [...]
Steps to reproduce
To recreate:
Create a new Gauge project.
Build the project (to trigger NuGet restore).
Open the StepImplementation.
Open the example.spec and use New Vertical Tab Group, so you can see both files.
In Test Explorer, click Run All.
See
Edit
* The word "gauge" has "3" vowels.
to read* The word "gauge" has "4" vowels.
. In a different recreating-the-problem project, this caused it to lose all of the tests and test explorer was empty. In this case, it didn't work. (One of the difficulties in reporting cases is that I don't get the same experience every time.)Build the solution:
I edited the above line back to 3, rebuilt and still couldn't recreate it (missing tests issue). I think at this point, I closed the project and re-opened GaugeProject4 where I had the missing tests. Then closed and reopened this project. I think I hit Build and it found all of the tests and then this appeared:
Tests are greyed-out after this:
I ran Clean Solution, then Build Solution. The tests were still greyed-out but I click Run All and they ran successfully, went green in Test Explorer. By the time I'd finished typing the above sentence they'd greyed-out again and the same (?) error message had appeared:
Version Information
Microsoft Visual Studio Community 2015 Version 14.0.25431.01 Update 3 Microsoft .NET Framework Version 4.7.03062
Installed Version: Community
Gauge.VisualStudio 1.0 (as reported by Help > About) Gauge Visual Studio Extension
Gauge plugin for Visual Studio:- 0.3.7 Gauge.VisualStudio.Templates:- 1.1