Add benchmarking and trace build config
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
<Platforms>x64</Platforms>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -21,4 +23,8 @@
|
||||
<ProjectReference Include="..\Solver\Craftimizer.Solver.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DefineConstants Condition="'$(IS_BENCH)'=='1'">$(DefineConstants);IS_DETERMINISTIC</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Craftimizer.Simulator.Actions;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Craftimizer.Test.Simulator;
|
||||
|
||||
|
||||
@@ -105,6 +105,10 @@ public class ActionSetTests
|
||||
[TestMethod]
|
||||
public void TestRandomIndex()
|
||||
{
|
||||
#if IS_DETERMINISTIC
|
||||
Assert.Inconclusive("Craftimizer is built for benchmarking; all random actions are deterministic and not actually random.");
|
||||
#endif
|
||||
|
||||
var actions = new[]
|
||||
{
|
||||
ActionType.BasicTouch,
|
||||
|
||||
Reference in New Issue
Block a user