소스 검색

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

Vincenz Mechler 6 년 전
부모
커밋
23ac7af994
2개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  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();