-
Notifications
You must be signed in to change notification settings - Fork 2
Settings
Stephen McCafferty edited this page Nov 3, 2017
·
4 revisions
The <Settings>
element defines general settings for your project. The following attributes are available:
Attribute | Required/Optional | Description |
---|---|---|
projectName | Required | Name of the project. The project name is entered automatically when adding the NuGet package to your project. The project name is used to generate the default name of your report or log files. |
name | Optional | Name of the settings (optional). By default, this name is used to generate the name of your report or log files (but an alternative file name can be specified in your .runsettings file or from the [[command line |
projectID | Optional | The GUID of the project. Entered automatically when adding the NuGet package to your project. |
baseFolder | Optional | The folder where SpecFlow+ searches for assemblies that contains the tests to execute when running tests from the [[command line |
outputFolder | Optional | Output folder for reports and log files, relative to the base folder, when running tests from the command line. The default path is the value of baseFolder . |
reportTemplate | Optional | The report template used to output the results of your tests (relative to the base folder). If you add this file to your VS project, you can set Copy to Output Directory to "Copy always" to ensure the file is always copied to the \bin directory when running your tests.NOTE: This setting is a legacy option that has been retained for compatibility. We recommend that you specify your report templates using the [[<Report> |
licenseKey | Optional | Location of the license key for project or OEM licenses. Note: This option is unavailable for standard licenses; it only applies to project or OEM licenses. Project licenses are only valid for a specific project; OEM licenses are only available under certain circumstances. If you are unsure which type of license you have, it will be a standard license. |
Example:
<Settings
name="MySettings"
projectName="MyProject"
projectId="{7B359152-D36D-4D5A-BFDB-ED78B094D619}"
baseFolder="C:\MyBaseFolder"
outputFolder="..\OutputFolder"
reportTemplate="MyTemplate.cshtml"/>