* Update gitignore * Move csproj * Update project references * Update solutions * Update build scripts * Tests used to share editorconfig with projects in src * Fix broken tests. * Stop copying around .editorconfig merged root one with linting * csharp_style_expression_bodied -> suggestion * Move StyleCop rulesets to matching directories and update shared build properties * Remove legacy build files, update NuGet.cofig and solution files * Restore myget source * Clean up .gitignore * Update .gitignore * Move new test classes to tests after merge * Gitignore + nuget config * Move new test Co-authored-by: Ronald Barendse <ronald@barend.se>
73 lines
1.6 KiB
C#
73 lines
1.6 KiB
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
namespace Umbraco.Cms.Tests.Common.Testing
|
|
{
|
|
public static class UmbracoTestOptions
|
|
{
|
|
public enum Logger
|
|
{
|
|
/// <summary>
|
|
/// pure mocks
|
|
/// </summary>
|
|
Mock,
|
|
|
|
/// <summary>
|
|
/// Serilog for tests
|
|
/// </summary>
|
|
Serilog,
|
|
|
|
/// <summary>
|
|
/// console logger
|
|
/// </summary>
|
|
Console
|
|
}
|
|
|
|
public enum Database
|
|
{
|
|
/// <summary>
|
|
/// no database
|
|
/// </summary>
|
|
None,
|
|
|
|
/// <summary>
|
|
/// new empty database file for the entire fixture
|
|
/// </summary>
|
|
NewEmptyPerFixture,
|
|
|
|
/// <summary>
|
|
/// new empty database file per test
|
|
/// </summary>
|
|
NewEmptyPerTest,
|
|
|
|
/// <summary>
|
|
/// new database file with schema for the entire fixture
|
|
/// </summary>
|
|
NewSchemaPerFixture,
|
|
|
|
/// <summary>
|
|
/// new database file with schema per test
|
|
/// </summary>
|
|
NewSchemaPerTest
|
|
}
|
|
|
|
public enum TypeLoader
|
|
{
|
|
/// <summary>
|
|
/// the default, global type loader for tests
|
|
/// </summary>
|
|
Default,
|
|
|
|
/// <summary>
|
|
/// create one type loader for the feature
|
|
/// </summary>
|
|
PerFixture,
|
|
|
|
/// <summary>
|
|
/// create one type loader for each test
|
|
/// </summary>
|
|
PerTest
|
|
}
|
|
}
|
|
}
|