Skip to content

Commit

Permalink
This attribute does not work when running on Linux Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Oct 16, 2023
1 parent 266c9ce commit 7cdaf83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ public class MyTestClass
}
```

> **Warning**
> This attribute does not work when running on Linux Editor.
> **Note**
> Scene path can specify a file or directory path.
> The path starts with `Assets/` or `Packages/`.
Expand Down
3 changes: 3 additions & 0 deletions Tests/Editor/TemporaryBuildScenesUsingInTestTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using System.Linq;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;

namespace TestHelper.Editor
{
Expand Down Expand Up @@ -43,6 +45,7 @@ public void GetScenesUsingInTest_AttachedToMethodMultiple_ReturnScenesSpecifiedB
Does.Contain("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild3.unity"));
}

[UnityPlatform(RuntimePlatform.WindowsEditor, RuntimePlatform.OSXEditor)] // Not supported LinuxEditor
[Test]
public void GetScenesUsingInTest_SpecifyDirectory_ReturnScenesSpecifiedByAttribute()
{
Expand Down
1 change: 1 addition & 0 deletions Tests/Runtime/Attributes/ScenesUsingInTestAttributeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace TestHelper.Attributes
{
[UnityPlatform(RuntimePlatform.WindowsEditor, RuntimePlatform.OSXEditor)] // Not supported LinuxEditor
[TestFixture]
[ScenesUsingInTest("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild_Class.unity")]
[SuppressMessage("ReSharper", "Unity.LoadSceneUnexistingScene")]
Expand Down

0 comments on commit 7cdaf83

Please sign in to comment.