diff --git a/tests/UnitTests/Application/UserScripts/UserScriptsTests.cpp b/tests/UnitTests/Application/UserScripts/UserScriptsTests.cpp
index b009f4fa..f03945c0 100644
--- a/tests/UnitTests/Application/UserScripts/UserScriptsTests.cpp
+++ b/tests/UnitTests/Application/UserScripts/UserScriptsTests.cpp
@@ -9,6 +9,7 @@
 using namespace fakeit;
 using namespace MellowPlayer::Application;
 
+#ifdef QT_DEBUG
 SCENARIO("UserScriptsTests")
 {
     Mock<IUserScript> userScriptMock;
@@ -136,4 +137,5 @@ SCENARIO("UserScriptsTests")
         }
 
     }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file