-
Notifications
You must be signed in to change notification settings - Fork 19
Updated AcceptanceTests to use LightBDD 2x #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| <add formatter="LightBDD.Results.Formatters.PlainTextResultFormatter, LightBDD" output="Reports\FeaturesSummary.txt" /> | ||
| <add formatter="LightBDD.Results.Formatters.HtmlResultFormatter, LightBDD" output="Reports\FeaturesSummary.html" /> | ||
| </summaryWriters> | ||
| </lightbdd> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration moved to code
|
|
||
| namespace HealthMonitoring.AcceptanceTests.Helpers | ||
| { | ||
| class FormatCollectionAttribute : ParameterFormatterAttribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is now in LightBDD 2
| [assembly: AssemblyFileVersion("3.5.1.0")] | ||
|
|
||
| // Allows to display scenario names properly in Release mode | ||
| [assembly: Debuggable(true, true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer needed to properly generate reports in LightBDD 2
| .AddFileWriter<HtmlReportFormatter>(@"~\Reports\FeaturesSummary.html") | ||
| .AddFileWriter<PlainTextReportFormatter>(@"~\Reports\FeaturesSummary.txt"); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class allows to configure LightBDD2 but also to start services before tests and stop after test execution
| <RootNamespace>HealthMonitoring.AcceptanceTests</RootNamespace> | ||
| <AssemblyName>HealthMonitoring.AcceptanceTests</AssemblyName> | ||
| <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> | ||
| <TargetFrameworkVersion>v4.6</TargetFrameworkVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to update test projects to 4.6, otherwise xunit 2.2.0 will put reference to NetStandard packages which would install tens of System packages in each project.
# Conflicts: # HealthMonitoring.AcceptanceTests/App.config # HealthMonitoring.AcceptanceTests/HealthMonitoring.AcceptanceTests.csproj # HealthMonitoring.AcceptanceTests/Properties/AssemblyInfo.cs # HealthMonitoring.AcceptanceTests/packages.config # HealthMonitoring.Api.UnitTests/HealthMonitoring.Api.UnitTests.csproj # HealthMonitoring.Integration.PushClient.UnitTests/HealthMonitoring.Integration.PushClient.UnitTests.csproj # HealthMonitoring.Management.Core.UnitTests/HealthMonitoring.Management.Core.UnitTests.csproj # HealthMonitoring.Monitors.Core.UnitTests/HealthMonitoring.Monitors.Core.UnitTests.csproj # HealthMonitoring.TestUtils/HealthMonitoring.TestUtils.csproj # HealthMonitoring.UnitTests/HealthMonitoring.UnitTests.csproj
Updated AcceptanceTests to use LightBDD 2x
Updated tests to use xunit 2.2.0.
Upgraded tests projects to .net46 to avoid xunit to reference NetStandard packages