Updated AcceptanceTests to use LightBDD 2x#56
Conversation
Suremaker
commented
Feb 27, 2017
| <add formatter="LightBDD.Results.Formatters.PlainTextResultFormatter, LightBDD" output="Reports\FeaturesSummary.txt" /> | ||
| <add formatter="LightBDD.Results.Formatters.HtmlResultFormatter, LightBDD" output="Reports\FeaturesSummary.html" /> | ||
| </summaryWriters> | ||
| </lightbdd> |
Owner
Author
There was a problem hiding this comment.
The configuration moved to code
|
|
||
| namespace HealthMonitoring.AcceptanceTests.Helpers | ||
| { | ||
| class FormatCollectionAttribute : ParameterFormatterAttribute |
Owner
Author
There was a problem hiding this comment.
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)] |
Owner
Author
There was a problem hiding this comment.
This is no longer needed to properly generate reports in LightBDD 2
| .AddFileWriter<HtmlReportFormatter>(@"~\Reports\FeaturesSummary.html") | ||
| .AddFileWriter<PlainTextReportFormatter>(@"~\Reports\FeaturesSummary.txt"); | ||
| } | ||
| } |
Owner
Author
There was a problem hiding this comment.
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> |
Owner
Author
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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