getgauge / gauge-visualstudio

Visual Studio plugin for Gauge
10 stars 9 forks source link

Should be able to run tests from the Test Explorer #235

Closed sswaroopgupta closed 6 years ago

sswaroopgupta commented 6 years ago

Actual behavior Getting the error Settings Provider named 'RunConfiguration' was not found. The full stack trace is given below

[6/11/2018 8:08:13 AM Informational] ------ Discover test started ------
[6/11/2018 8:08:15 AM Informational] Discover Scenarios started. Using : ProjectRoot: ...\three, OutputPath: ...\three\bin\Debug\, API Port: 46337
[6/11/2018 8:08:15 AM Informational] Adding test cases from : ...\three\specs\example.spec
[6/11/2018 8:08:15 AM Informational] Discovered scenario: Vowel counts in single word
[6/11/2018 8:08:15 AM Informational] Discovered scenario: Vowel counts in multiple word
[6/11/2018 8:08:15 AM Informational] ========== Discover test finished: 2 found (0:00:02.5322576) ==========
[6/11/2018 8:08:32 AM Informational] ------ Discover test started ------
[6/11/2018 8:08:33 AM Informational] Discover Scenarios started. Using : ProjectRoot: ...\three, OutputPath: ...\three\bin\Debug\, API Port: 46337
[6/11/2018 8:08:33 AM Informational] Adding test cases from : ...\three\specs\example.spec
[6/11/2018 8:08:33 AM Informational] Discovered scenario: Vowel counts in single word
[6/11/2018 8:08:33 AM Informational] Discovered scenario: Vowel counts in multiple word
[6/11/2018 8:08:33 AM Informational] ========== Discover test finished: 2 found (0:00:00.7161758) ==========
[6/11/2018 8:08:33 AM Informational] ------ Run test started ------
[6/11/2018 8:08:34 AM Informational] Discover Scenarios started. Using : ProjectRoot: ...\three, OutputPath: ...\three\bin\Debug\, API Port: 46337
[6/11/2018 8:08:34 AM Informational] Adding test cases from : ...\three\specs\example.spec
[6/11/2018 8:08:34 AM Informational] Discovered scenario: Vowel counts in single word
[6/11/2018 8:08:34 AM Informational] Discovered scenario: Vowel counts in multiple word
[6/11/2018 8:08:34 AM Error] An exception occurred while invoking executor 'executor://gaugespecexecutor/v1': Settings Provider named 'RunConfiguration' was not found.  The settings can not be loaded.
[6/11/2018 8:08:34 AM Informational] ========== Run test finished: 0 run (0:00:00.9990331) ==========

Steps to replicate

Version

Gauge version: 0.9.9.nightly-2018-06-01
Commit Hash: 812f26e

Plugins
-------
csharp (0.10.4.nightly-2018-05-29)

VS - gauge.visualstudio-latest.nightly-2018-06-06

r0ckburn commented 6 years ago

Any idea when someone will begin working on this issue? I'm working on a project that can only be built in VS-2017 and this bug is preventing me from running tests.

sriv commented 6 years ago

I am looking into this. Getting clean environments to test is causing delays.

ghost commented 6 years ago

Is it possible to use Gauge and write tests in C# without this plug-in for Visual Studio 2017? I'm good with using my own text editor and command-line tools, but as a Linux guy I'm unfamiliar with Visual Studio and tools like NuGet. Maybe I can just do everything on the command-line for a few months until the plug-in is working?

zabil commented 6 years ago

@steve123456 Yes you can. Gauge is designed to work well with text editors and CLI. Specifications are simply text files in Markdown format.

ghost commented 6 years ago

Thanks @zabil, that's great news. I'm going to delve deeper and ignore this plug-in for now. I'm looking forward to learning Gauge.

sriv commented 6 years ago

just pushed a few changes to address the test runner issues. fix should be available in nightly >= 27-07-18