diff --git a/reanimate.cabal b/reanimate.cabal
--- a/reanimate.cabal
+++ b/reanimate.cabal
@@ -3,7 +3,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:                reanimate
-version:             0.2.0.1
+version:             0.2.0.2
 -- synopsis:
 -- description:
 license:             PublicDomain
@@ -36,6 +36,11 @@
     Type:      git
     Location:  git://github.com/lemmih/reanimate.git
 
+Flag test
+  Description: Enable testing (requires stack)
+  Default:     False
+  Manual:      True
+
 library
   hs-source-dirs:     src
   default-language:   Haskell2010
@@ -98,6 +103,9 @@
   other-modules:
     UnitTests
   hs-source-dirs: test
+  if !flag(test) {
+    Buildable: False
+  }
   build-depends:
     base,
     directory,
