Skip to content

Conversation

@Suremaker
Copy link
Owner

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

<add formatter="LightBDD.Results.Formatters.PlainTextResultFormatter, LightBDD" output="Reports\FeaturesSummary.txt" />
<add formatter="LightBDD.Results.Formatters.HtmlResultFormatter, LightBDD" output="Reports\FeaturesSummary.html" />
</summaryWriters>
</lightbdd>
Copy link
Owner Author

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
Copy link
Owner Author

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)]
Copy link
Owner Author

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");
}
}
Copy link
Owner Author

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>
Copy link
Owner Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant