Преглед на файлове

Add skip for intentionally failing tests in driver.t

Daniel Gempesaw преди 11 години
родител
ревизия
2ba1731aeb
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      t/01-driver.t

+ 5 - 1
t/01-driver.t

@@ -507,7 +507,11 @@ UPLOAD: {
 
     #Negative tests to verify that our expected behavior codepath is travelled by tests
     like( exception { $driver->upload_file('@@@SomeFileThatDoesNotExist@@@')},qr/no such file/,"Passing missing file terminates program");
-    like( exception { $driver->upload_file(__FILE__) },qr/501/,"Passing this file rightly fails due to mock not being present");
+  SKIP: {
+        skip 'purposefully excluding this test from the recording', 1
+          if $harness->record;
+        like( exception { $driver->upload_file(__FILE__) },qr/501/,"Passing this file rightly fails due to mock not being present");
+    }
 }
 
 QUIT: {