Permalink
Browse files

make exhaustive tests work in netcore builds

  • Loading branch information...
1 parent f90ea49 commit b2637bbb72a72575fe8e82ba3e30906b27e47eb7 @kevin-montrose committed Jan 1, 2017
Showing with 35 additions and 9 deletions.
  1. +8 −3 Jil.Core/project.json
  2. +4 −4 Jil.sln
  3. +16 −0 JilTests.Core/Program.cs
  4. +7 −2 JilTests.Core/project.json
View
@@ -1,6 +1,5 @@
{
"version": "1.0.0-*",
-
"dependencies": {
"Microsoft.CSharp": "4.3.0",
"NETStandard.Library": "1.6.1",
@@ -13,18 +12,24 @@
"System.Reflection": "4.3.0",
"System.Runtime.Serialization.Primitives": "4.3.0"
},
-
"frameworks": {
"netstandard1.6": {
"imports": "dnxcore50"
}
},
-
"buildOptions": {
"define": [ "NETCORE" ],
"allowUnsafe": true,
"compile": {
"include": [ "..\\Jil\\**\\*.cs" ]
}
+ },
+ "configurations": {
+ "Release_ExhaustiveTest": {
+ "compilationOptions": {
+ "define": [ "EXHAUSTIVE_TEST" ]
+ }
+ }
+
}
}
View
@@ -62,14 +62,14 @@ Global
{0EDD50BE-0CCD-48E1-A613-4A623F543492}.Release|Any CPU.Build.0 = Release|Any CPU
{03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Release_ExhaustiveTest|Any CPU.ActiveCfg = Release|Any CPU
- {03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Release_ExhaustiveTest|Any CPU.Build.0 = Release|Any CPU
+ {03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Release_ExhaustiveTest|Any CPU.ActiveCfg = Release_ExhaustiveTest|Any CPU
+ {03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Release_ExhaustiveTest|Any CPU.Build.0 = Release_ExhaustiveTest|Any CPU
{03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03029B62-21DB-4CE4-9FAB-41D3A1615EE8}.Release|Any CPU.Build.0 = Release|Any CPU
{5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Release_ExhaustiveTest|Any CPU.ActiveCfg = Release|Any CPU
- {5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Release_ExhaustiveTest|Any CPU.Build.0 = Release|Any CPU
+ {5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Release_ExhaustiveTest|Any CPU.ActiveCfg = Release_ExhaustiveTest|Any CPU
+ {5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Release_ExhaustiveTest|Any CPU.Build.0 = Release_ExhaustiveTest|Any CPU
{5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F76B615-53A4-4DE0-8131-2F4BC49929EF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
@@ -11,6 +11,20 @@ public class Program
{
public static void Main(string[] args)
{
+ Console.WriteLine($"Starting test run: {DateTime.UtcNow:u}");
+#if DEBUG
+ Console.WriteLine("\tDEBUG");
+#endif
+#if RELEASE
+ Console.WriteLine("\tRELEASE");
+#endif
+#if NETCORE
+ Console.WriteLine("\tNETCORE");
+#endif
+#if EXHAUSTIVE_TEST
+ Console.WriteLine("\tEXHAUSTIVE_TEST");
+#endif
+
var asm = Assembly.GetEntryAssembly();
var testGroups = asm.GetTypes();
@@ -71,6 +85,8 @@ public static void Main(string[] args)
}
}
+ Console.WriteLine($"Test run completed: {DateTime.UtcNow:u}");
+
Console.ReadKey();
}
@@ -9,7 +9,6 @@
"exclude": [ "..\\JilTests\\Properties\\AssemblyInfo.cs" ]
}
},
-
"dependencies": {
"Jil.Core": "1.0.0-*",
"Microsoft.NETCore.App": {
@@ -18,10 +17,16 @@
},
"Newtonsoft.Json": "9.0.2-beta1"
},
-
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
+ },
+ "configurations": {
+ "Release_ExhaustiveTest": {
+ "buildOptions": {
+ "define": [ "EXHAUSTIVE_TEST" ]
+ }
+ }
}
}

0 comments on commit b2637bb

Please sign in to comment.