jole78 / TeamCity.SpecFlow.Reporting

Automates, via PowerShell, the process of executing SpecFlow features via specflow.exe to produce a html report that can be shown in TeamCity.
MIT License
19 stars 1 forks source link

Using app.config for specs #13

Closed christianfredh closed 10 years ago

christianfredh commented 10 years ago

We use some settings, like URL:s for Selenium, database connection string etc. When I use this, it run and works, but the settings that we have in app.config specified are not there. Maybe I missing something, is there a way of doing this?

christianfredh commented 10 years ago

We were building with the wrong configuration, then the settings were not picked up. I added a section in the The Defaults section in the wiki:

App.config

If you use a App.config file for settings, like connection strings and URL:s, make sure you build with correct Configuration, or your settings will not be picked up. If you use the default settings, you need to build in Release for your settings to be picked up. Alternatively, set the Configuration to the configuration you use, most common would be Debug. This is shown in Changing the Defaults.