Commonly used CSharp testing code used at andculture.
This package is installed via NuGet
dotnet add [<PROJECT>] package AndcultureCode.CSharp.Testing
- Install Dotnet Core 2.x
- Install the
and-cli
tooling found at AndcultureCode.Cli
Below are a few basics to get you started, but there are many more commands and options for managing this and other projects found in the and-cli
.
- Run the build command
and-cli dotnet --build
- Run the test command
and-cli dotnet-test
- Run the test command
and-cli dotnet-test --coverage
- Open the
coverage.opencover.xml
file in your browser
- Run the publish command with the next version number (See semver package versioning)
and-cli nuget --publish <version>
TODO: In-depth documentation on test factories
Using the FactorySettings
singleton class you can configure test factories. To access properties use the singleton instance FactorySettings.Instance.{property|method};
To enable debug output set the Debug
setting to true
. Now warnings will be output via standard out for troubleshooting purposes. By default, only exceptional cases will be output.
Information on contributing to this repo is in the Contributing Guide