diff --git a/source/dub/dub.d b/source/dub/dub.d index 683996f..dc3d038 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -666,7 +666,7 @@ NativePath msf = NativePath(mainfil); if (msf.absolute) msf = msf.relativeTo(m_project.rootPackage.path); - if (NativePath(file).relativeTo(m_project.rootPackage.path) == msf) { + if (!settings.single && NativePath(file).relativeTo(m_project.rootPackage.path) == msf) { logWarn("Excluding main source file %s from test.", mainfil); tcinfo.excludedSourceFiles[""] ~= mainfil; continue;