Browse Source

excluded svg parsing tests from AppVeyor execution as they depend on filesystem access and the [DeploymentItem] attribute

Vincenz Mechler 5 years ago
parent
commit
23ac7af994
2 changed files with 15 additions and 1 deletions
  1. 13 1
      .appveyor.yml
  2. 2 0
      SketchAssistant/WhiteTests/UITest.cs

+ 13 - 1
.appveyor.yml

@@ -5,4 +5,16 @@ install:
  - "nuget install TestStack.White"
  - "nuget install MSTest.TestAdapter"
  - "nuget install MSTest.TestFramework"
- - "nuget restore SketchAssistant/SketchAssistant.sln"
+ - "nuget restore SketchAssistant/SketchAssistant.sln"
+ 
+#artifacts:
+#  - path: SketchAssistant/WhiteTests/test_input_files/whitelisted/*.svg
+#    name: whitelisted svg files for testing
+#  - path: SketchAssistant/WhiteTests/test_input_files/blacklisted/*.svg
+#    name: blacklisted svg files for testing
+
+test:
+    #don't run tests depending on [DeploymentItem] and filesystem access
+    categories:
+        except:
+            - FileIO

+ 2 - 0
SketchAssistant/WhiteTests/UITest.cs

@@ -255,6 +255,7 @@ namespace WhiteTests
         /// parses all whitelisted files and ensures no exceptions are thrown (parsing abortion, e.g. due to corrupted input files, are realized by throwing a FileImporterException)
         /// </summary>
         [TestMethod]
+        [TestCategory("FileIO")]
         public void ParseSVGInputNoErrorForWhitelistedFilesTest()
         {
             FileImporter uut = new FileImporter();
@@ -283,6 +284,7 @@ namespace WhiteTests
         /// parses all blacklisted files and ensures an instance of FileIporterException is thrown for each file, but no other exceptions occur
         /// </summary>
         [TestMethod]
+        [TestCategory("FileIO")]
         public void ParseSVGInputNoErrorForBlacklistedFilesTest()
         {
             FileImporter uut = new FileImporter();