diff --git a/autorun.php b/autorun.php
index <HASH>..<HASH> 100644
--- a/autorun.php
+++ b/autorun.php
@@ -15,6 +15,13 @@
     function SimpleTestAutoRunner() {
         global $SIMPLE_TEST_AUTORUNNER_INITIAL_CLASSES;
 
+        //are tests already executed? If yes no autorunning.
+        if ($ctx = SimpleTest :: getContext()) {
+          if ($ctx->getTest()) {
+              return;
+          }
+        }
+
         $file = reset(get_included_files());
         $diff_classes = array_diff(get_declared_classes(),
                               $SIMPLE_TEST_AUTORUNNER_INITIAL_CLASSES ?
Autorunning only works when scripts are executed directly with PHP, if tests are already included into test group and executed autorunning is skipped