mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
* Ports much of GameTest, minus all the WIP stuff. * remark. * EnsureCVar now adds test properties. * Some cleanup and functionality. * Ignore broken test. Needs fixed eventually. Also explicit context config. * TrackingIssue attribute. * oops * Pair config attribute. * Remove SystemAttribute in favor of using the EntitySystemManager dependency collection. * Ensure idleness. * More tests for tests. * More specific failure catching tests. * Reverse attribute resolution order so suite-wide attributes happen first. * Get rid of AffectedProperties again because I need to refactor PoolSettings for that. * Poke * Final cleanup pass. * Update Content.IntegrationTests/Fixtures/Attributes/RunOnSideAttribute.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * Update Content.IntegrationTests/Fixtures/Attributes/Side.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * Update Content.IntegrationTests/NUnit/Utilities/ITestExtensions.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * Fixes. * shut up nunit. * Make TrackingIssue a bit strict on purpose, so people don't put junk here. * Update Content.IntegrationTests/Tests/GameTestTests/DisconnectedDependencyTest.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * Address. --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
#nullable enable
|
|
|
|
namespace Content.IntegrationTests.Fixtures.Attributes;
|
|
|
|
/// <summary>
|
|
/// Interface used for <see cref="GameTest"/> pair configuration attributes.
|
|
/// This allows such attributes to modify the pair settings, and also describe what parts of pairs they modify
|
|
/// so odd configuration choices can be spotted.
|
|
/// </summary>
|
|
public interface IGameTestPairConfigModifier
|
|
{
|
|
/// <summary>
|
|
/// Whether this modifier is exclusive and should conflict with other exclusive modifiers.
|
|
/// Essentially, fail immediately if other IGameTestPairConfigModifier attributes are present if this is set.
|
|
/// </summary>
|
|
bool Exclusive { get; }
|
|
|
|
/// <summary>
|
|
/// Called when GameTest needs its <see cref="PoolSettings"/> modified by the modifier.
|
|
/// </summary>
|
|
/// <param name="test">The test we're applying to.</param>
|
|
/// <param name="settings">The settings object to modify.</param>
|
|
void ApplyToPairSettings(GameTest test, ref PoolSettings settings);
|
|
}
|
|
|