diff --git a/tests/test_command_line.py b/tests/test_command_line.py
index <HASH>..<HASH> 100644
--- a/tests/test_command_line.py
+++ b/tests/test_command_line.py
@@ -2,7 +2,10 @@
 # -*- coding: utf-8 -*-
 import filecmp
 import os
+import shutil
 import subprocess
+import sys
+import tempfile
 from ConfigParser import NoOptionError, SafeConfigParser
 
 import pexpect
@@ -135,11 +138,25 @@ class TestDebugServer(object):
         os.chdir(self.orig_dir)
 
     def test_startup(self):
+        # Heroku requires a home directory to start up
+        # We create a fake one using tempfile and set it into the
+        # environment to handle sandboxes on CI servers
+        fake_home = tempfile.mkdtemp()
         # Make sure debug server starts without error
-        p = pexpect.spawn('dallinger', ['debug'])
-        p.expect_exact('Server is running', timeout=120)
-        p.sendcontrol('c')
-        p.read()
+        try:
+            environ = os.environ.copy()
+            environ.update({'HOME': fake_home})
+            p = pexpect.spawn(
+                'dallinger',
+                ['debug', '--verbose'],
+                env=environ,
+            )
+            p.logfile = sys.stdout
+            p.expect_exact('Server is running', timeout=120)
+            p.sendcontrol('c')
+            p.read()
+        finally:
+            shutil.rmtree(fake_home)
 
 
 class TestHeader(object):
When testing the local debug command, invoke it with a fake home directory so that it will start on Travis

Also invoke in verbose mode and output the subprocess and
grandsubprocess's output to stdout to make debugging easier.