Skip to content

Commit

Permalink
Merge pull request #85 from nowsprinting/fix/buildscene_multiple
Browse files Browse the repository at this point in the history
Fix BuildSceneAttribute to allow multiple
  • Loading branch information
nowsprinting authored May 7, 2024
2 parents 48b8e61 + 3fa6e1d commit 2a8de42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Attributes/BuildSceneAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TestHelper.Attributes
/// <summary>
/// Build scene before running test on player.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class BuildSceneAttribute : NUnitAttribute
{
internal string ScenePath { get; private set; }
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/LoadSceneAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace TestHelper.Attributes
/// <summary>
/// Load scene before running test.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class LoadSceneAttribute : BuildSceneAttribute, IOuterUnityTestAction
{
/// <summary>
Expand Down

0 comments on commit 2a8de42

Please sign in to comment.