Files
RobustToolbox/Robust.UnitTesting/RTCVars.cs
Javier Guardia Fernández 04d029b9a2 Add test pooling (#2146)
* Add test pooling and global test setup

* WIP test pooling changes

* Make asynchronous tests the default again

* Finish fixing tests, make test threads background threads

* Un-pool tests with custom cvars

* Fix not changing FailureLogLevel cvar on instance return

* Fix error when overriding already overriden cvar

* Don't pool some physics integration tests

* Unpool engine tests, the technology just isn't there yet

* Remove explicit Pool = false from physics tests

* Change default pooling setting to false

* Didn't need this anyway

* Remove ConfigurationManager.ResetOverrides

* Bring back enum cvar override parsing

* Make integrationInstances name clearer > notPooledInstaces
Make clients ready and servers ready internal

* Add logging test instances

* Give more info on ran tests

* Show total clients and servers in test output

* Wipe LayerMap on SpriteComponent.AfterDeserialize

* Fix server not properly kicking clients

* Rider shut

* Make all test metrics report totals

* Format tests ran better

* Replace Console.WriteLine with TestContext.Out.WriteLine

* Fix two server test pooling info prints using total clients instead of total servers

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2021-11-06 11:18:18 +01:00

22 lines
544 B
C#

using Robust.Shared;
using Robust.Shared.Configuration;
using Robust.Shared.Log;
namespace Robust.UnitTesting
{
// ReSharper disable once InconsistentNaming
[CVarDefs]
public sealed class RTCVars : CVars
{
/*
* Logging
*/
/// <summary>
/// The log level which will cause a test failure.
/// </summary>
public static readonly CVarDef<LogLevel> FailureLogLevel =
CVarDef.Create("robust.tests.failure_log_level", Robust.Shared.Log.LogLevel.Error);
}
}