From 0c73e5eb44cff40be484b7805a19f042512402d2 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Fri, 26 Feb 2016 17:39:18 +0000 Subject: [PATCH] move skip tests to history --- HISTORY | 11 +++++++++++ TODO | 12 ------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/HISTORY b/HISTORY index 3abbccd..3d721e3 100644 --- a/HISTORY +++ b/HISTORY @@ -7,6 +7,17 @@ Version 0.0.7 The Molly-guard is now more accepting. For example, you no longer need to pass -f in this case: https://github.com/creationix/nvm/issues/357 +Previously, tests were run if they were executable and were otherwise marked +as skipped. Now, an executable script can indicate that it is skipped by +exiting with code 3. For example, if a test requires some dependancy, it +might look for the dependency and then skip if it does not see the dependency. +It might look like this. + + #!/bin/sh + if which inkscape; then + exit 3 # status code 3 for skip + fi + inkscape blah blah ... Version 0.0.6 --------------------- diff --git a/TODO b/TODO index 740f406..16bd8f9 100644 --- a/TODO +++ b/TODO @@ -1,18 +1,6 @@ Things I want ============= -Skip tests -------------- -I want tests to be able to decide to skip themselves. For example, if a test -requires some dependancy, it might look for the dependency and then skip if it -does not see the dependency. It might look like this. - - #!/bin/sh - if which parallel > /dev/null; then - exit 3 # status code 3 for skip - fi - parallel blah blah ... - Test speed ------------- Make tests run faster.