Jelajahi Sumber

Enable tests to run using donet xunit test runner

Kiran Challa 10 tahun lalu
induk
melakukan
85b1ac37bf

+ 6 - 9
test/Microsoft.AspNetCore.Cryptography.Internal.Test/project.json

@@ -10,23 +10,20 @@
     "xunit": "2.1.0"
     "xunit": "2.1.0"
   },
   },
   "frameworks": {
   "frameworks": {
-    "dnx451": {
-      "dependencies": {
-        "xunit.runner.console": "2.1.0"
-      }
-    },
     "dnxcore50": {
     "dnxcore50": {
       "dependencies": {
       "dependencies": {
-        "xunit.runner.aspnet": "2.0.0-aspnet-*",
+        "dotnet-test-xunit": "1.0.0-dev-*",
         "System.Runtime": "4.0.21-*"
         "System.Runtime": "4.0.21-*"
       },
       },
       "imports": "portable-net451+win8"
       "imports": "portable-net451+win8"
+    },
+    "dnx451": {
+      "dependencies": {
+        "xunit.runner.console": "2.1.0"
+    }
     }
     }
   },
   },
   "testRunner": "xunit",
   "testRunner": "xunit",
-  "commands": {
-    "test": "xunit.runner.aspnet"
-  },
   "compilationOptions": {
   "compilationOptions": {
     "allowUnsafe": true,
     "allowUnsafe": true,
     "keyFile": "../../tools/Key.snk",
     "keyFile": "../../tools/Key.snk",

+ 6 - 9
test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test/project.json

@@ -8,23 +8,20 @@
     "xunit": "2.1.0"
     "xunit": "2.1.0"
   },
   },
   "frameworks": {
   "frameworks": {
-    "dnx451": {
-      "dependencies": {
-        "xunit.runner.console": "2.1.0"
-      }
-    },
     "dnxcore50": {
     "dnxcore50": {
       "dependencies": {
       "dependencies": {
-        "xunit.runner.aspnet": "2.0.0-aspnet-*",
+        "dotnet-test-xunit": "1.0.0-dev-*",
         "System.Runtime": "4.0.21-*"
         "System.Runtime": "4.0.21-*"
       },
       },
       "imports": "portable-net451+win8"
       "imports": "portable-net451+win8"
+    },
+    "dnx451": {
+      "dependencies": {
+        "xunit.runner.console": "2.1.0"
+    }
     }
     }
   },
   },
   "testRunner": "xunit",
   "testRunner": "xunit",
-  "commands": {
-    "test": "xunit.runner.aspnet"
-  },
   "compilationOptions": {
   "compilationOptions": {
     "allowUnsafe": true,
     "allowUnsafe": true,
     "warningsAsErrors": true,
     "warningsAsErrors": true,

+ 8 - 11
test/Microsoft.AspNetCore.DataProtection.Abstractions.Test/project.json

@@ -7,28 +7,25 @@
     "xunit": "2.1.0"
     "xunit": "2.1.0"
   },
   },
   "frameworks": {
   "frameworks": {
-    "dnx451": {
-      "dependencies": {
-        "Moq": "4.2.1312.1622",
-        "xunit.runner.console": "2.1.0"
-      }
-    },
     "dnxcore50": {
     "dnxcore50": {
       "dependencies": {
       "dependencies": {
         "moq.netcore": "4.4.0-beta8",
         "moq.netcore": "4.4.0-beta8",
-        "xunit.runner.aspnet": "2.0.0-aspnet-*",
+        "dotnet-test-xunit": "1.0.0-dev-*",
         "System.Runtime": "4.0.21-*"
         "System.Runtime": "4.0.21-*"
       },
       },
       "imports": "portable-net451+win8"
       "imports": "portable-net451+win8"
+    },
+    "dnx451": {
+      "dependencies": {
+        "Moq": "4.2.1312.1622",
+        "xunit.runner.console": "2.1.0"
+    }
     }
     }
   },
   },
   "testRunner": "xunit",
   "testRunner": "xunit",
-  "commands": {
-    "test": "xunit.runner.aspnet"
-  },
   "compile": "../common/**/*.cs",
   "compile": "../common/**/*.cs",
   "compilationOptions": {
   "compilationOptions": {
     "warningsAsErrors": true,
     "warningsAsErrors": true,
     "keyFile": "../../tools/Key.snk"
     "keyFile": "../../tools/Key.snk"
   }
   }
-}
+}

+ 7 - 10
test/Microsoft.AspNetCore.DataProtection.Extensions.Test/project.json

@@ -11,25 +11,22 @@
     "xunit": "2.1.0"
     "xunit": "2.1.0"
   },
   },
   "frameworks": {
   "frameworks": {
-    "dnx451": {
-      "dependencies": {
-        "Moq": "4.2.1312.1622",
-        "xunit.runner.console": "2.1.0"
-      }
-    },
     "dnxcore50": {
     "dnxcore50": {
       "dependencies": {
       "dependencies": {
         "moq.netcore": "4.4.0-beta8",
         "moq.netcore": "4.4.0-beta8",
-        "xunit.runner.aspnet": "2.0.0-aspnet-*",
+        "dotnet-test-xunit": "1.0.0-dev-*",
         "System.Runtime": "4.0.21-*"
         "System.Runtime": "4.0.21-*"
       },
       },
       "imports": "portable-net451+win8"
       "imports": "portable-net451+win8"
+    },
+    "dnx451": {
+      "dependencies": {
+        "Moq": "4.2.1312.1622",
+        "xunit.runner.console": "2.1.0"
+    }
     }
     }
   },
   },
   "testRunner": "xunit",
   "testRunner": "xunit",
-  "commands": {
-    "test": "xunit.runner.aspnet"
-  },
   "compilationOptions": {
   "compilationOptions": {
     "warningsAsErrors": true,
     "warningsAsErrors": true,
     "keyFile": "../../tools/Key.snk"
     "keyFile": "../../tools/Key.snk"

+ 8 - 5
test/Microsoft.AspNetCore.DataProtection.Test.Shared/project.json

@@ -1,11 +1,14 @@
 {
 {
   "frameworks": {
   "frameworks": {
-    "dnx451": { },
     "dnxcore50": {
     "dnxcore50": {
       "dependencies": {
       "dependencies": {
-        "System.Runtime": "4.0.21-*"
-      }
-    }
+        "System.Runtime": "4.0.21-*",
+        "dotnet-test-xunit": "1.0.0-dev-*",
+        "Microsoft.NETCore.Platforms": "1.0.1-*"
+      },
+      "imports": "portable-net451+win8"
+    },
+    "dnx451": {}
   },
   },
   "shared": "**/*.cs"
   "shared": "**/*.cs"
-}
+}

+ 7 - 10
test/Microsoft.AspNetCore.DataProtection.Test/project.json

@@ -11,25 +11,22 @@
     "xunit": "2.1.0"
     "xunit": "2.1.0"
   },
   },
   "frameworks": {
   "frameworks": {
-    "dnx451": {
-      "dependencies": {
-        "Moq": "4.2.1312.1622",
-        "xunit.runner.console": "2.1.0"
-      }
-    },
     "dnxcore50": {
     "dnxcore50": {
       "dependencies": {
       "dependencies": {
         "moq.netcore": "4.4.0-beta8",
         "moq.netcore": "4.4.0-beta8",
-        "xunit.runner.aspnet": "2.0.0-aspnet-*",
+        "dotnet-test-xunit": "1.0.0-dev-*",
         "System.Runtime": "4.0.21-*"
         "System.Runtime": "4.0.21-*"
       },
       },
       "imports": "portable-net451+win8"
       "imports": "portable-net451+win8"
+    },
+    "dnx451": {
+      "dependencies": {
+        "Moq": "4.2.1312.1622",
+        "xunit.runner.console": "2.1.0"
+    }
     }
     }
   },
   },
   "testRunner": "xunit",
   "testRunner": "xunit",
-  "commands": {
-    "test": "xunit.runner.aspnet"
-  },
   "compilationOptions": {
   "compilationOptions": {
     "allowUnsafe": true,
     "allowUnsafe": true,
     "warningsAsErrors": true,
     "warningsAsErrors": true,