getgauge / gauge-csharp

Csharp runner for Gauge
https://gauge.org
GNU General Public License v3.0
33 stars 21 forks source link

Make CSharp Runner build Configuration and Platform Configurable #131

Closed mflick89 closed 6 years ago

mflick89 commented 6 years ago

Problem: Current CSharp Runner will always build C# gauge tests as "Any CPU" and "Debug" by default. This can cause difficulties when wanting to test some x64 environments or custom configurations.

Proposed Solution: Add variables to csharp.properties that allow users to define the Configuration and Platform of the build run by the CSharp Runner.

Example: The build configuration when running tests for the Gauge project GAUGE_CSHARP_PROJECT_CONFIG = Debug

The build platform when running tests for the Gauge project GAUGE_CSHARP_PROJECT_PLATFORM = Any CPU

mflick89 commented 6 years ago

I'd like to assign this issue to myself.

sriv commented 6 years ago

Thanks for raising this. Looking at the PR now.

sriv commented 6 years ago

should be available in nightly >= 14/06/2018

sswaroopgupta commented 6 years ago

Question

GAUGE_CSHARP_PROJECT_CONFIG = Debug

GAUGE_CSHARP_PROJECT_PLATFORM = Any CPU

Should these configurations be available in csharp.properties when a new project is created?

mflick89 commented 6 years ago

It would be nice to have them there. It is not required since the code will default these values if they are missing, but it would be nice to have them there by default to make it obvious to the user that the options are available.