Skip to content

Commit 16d8b27

Browse files
committed
bailout
1 parent 6d808ac commit 16d8b27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CodeQLToolkit.Features.Test/Commands/Targets/Actions/ExecuteUnitTestsCommandTarget.cs

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public override void Run()
4242
}
4343

4444
var transformedDirs = dirs.Select(dir => Path.GetRelativePath(Base, dir));
45+
46+
if(dirs.Length == 0)
47+
{
48+
DieWithError($"No tests detected. Please create unit tests before running this command.");
49+
}
4550

4651
Parallel.For(0, NumThreads,
4752
slice => {

0 commit comments

Comments
 (0)