diff --git a/tests/TestCase/FactoryTest.php b/tests/TestCase/FactoryTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/FactoryTest.php
+++ b/tests/TestCase/FactoryTest.php
@@ -3,6 +3,7 @@ namespace AssetCompress;
 
 use MiniAsset\AssetConfig;
 use AssetCompress\Factory;
+use Cake\Core\Configure;
 use Cake\Core\Plugin;
 use Cake\TestSuite\TestCase;
 
@@ -189,4 +190,18 @@ class FactoryTest extends TestCase
         ];
         $this->assertEquals($expected, $writer->config());
     }
+
+    public function testCompiler()
+    {
+        $config = AssetConfig::buildFromIniFile($this->overrideFile, [
+            'WEBROOT' => APP
+        ]);
+        $factory = new Factory($config);
+        $compiler = $factory->compiler();
+        $this->assertAttributeEquals(true, 'debug', $compiler);
+
+        Configure::write('debug', false);
+        $compiler = $factory->compiler();
+        $this->assertAttributeEquals(false, 'debug', $compiler);
+    }
 }
Ensure that compiler->debug reflects Configure.