Skip to content

Commit

Permalink
Fix test namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipAlg committed Dec 5, 2024
1 parent 49515f7 commit 1f46639
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tests/Editor/EditorMetadataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

using Assembly = System.Reflection.Assembly;

namespace AGXUnityTesting
namespace AGXUnityTesting.Editor
{
public class EditorMetadataTests
{
Expand Down
6 changes: 1 addition & 5 deletions Tests/Editor/SetupPlaymodeTestPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
public class SetupPlaymodeTestPlayer : ITestPlayerBuildModifier, IPostBuildCleanup
{
const string CLI_ARG = "onlyBuildTestsTo";
private static bool s_RunningPlayerTests;

public BuildPlayerOptions ModifyOptions( BuildPlayerOptions playerOptions )
{
Expand All @@ -24,8 +23,6 @@ public BuildPlayerOptions ModifyOptions( BuildPlayerOptions playerOptions )
if ( !string.IsNullOrEmpty( fileName ) )
buildLocation = Path.Combine( buildLocation, fileName );
playerOptions.locationPathName = buildLocation;

s_RunningPlayerTests = true;
}

var scenes = playerOptions.scenes.Where( s => s.StartsWith("Assets/InitTestScene"));
Expand All @@ -36,8 +33,7 @@ public BuildPlayerOptions ModifyOptions( BuildPlayerOptions playerOptions )

public void Cleanup()
{
if ( Environment.CommandLine.HasArg( CLI_ARG ) ) {
if ( Environment.CommandLine.HasArg( CLI_ARG ) )
EditorApplication.Exit( 0 );
}
}
}
2 changes: 1 addition & 1 deletion Tests/Editor/TerrainGetSetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using NUnit.Framework;
using UnityEngine;

namespace AGXUnityTesting
namespace AGXUnityTesting.Editor
{
public class TerrainGetSetTests
{
Expand Down
3 changes: 2 additions & 1 deletion Tests/Runtime/TerrainGetSetTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using AGXUnity.Model;

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

namespace AGXUnityTesting
namespace AGXUnityTesting.Runtime
{
public class TerrainGetSetTests
{
Expand Down

0 comments on commit 1f46639

Please sign in to comment.