Commit 3c96cbbc authored by Martin Finkel's avatar Martin Finkel

cake: add test task

parent 3543521d
......@@ -8,6 +8,7 @@ var solutionName = "LibVLCSharp";
var solutionFile = IsRunningOnWindows() ? $"{solutionName}.sln" : $"{solutionName}.Mac.sln";
var solutionPath = $"../src/{solutionFile}";
var libvlcsharpCsproj = "../src/libvlcsharp/libvlcsharp.csproj";
var testCsproj = "../src/libvlcsharp.tests/libvlcsharp.tests.csproj";
var packagesDir = "../packages";
var isCiBuild = BuildSystem.IsRunningOnAzurePipelines || BuildSystem.IsRunningOnAzurePipelinesHosted;
......@@ -65,6 +66,17 @@ Task("Build-only-libvlcsharp")
Build(libvlcsharpCsproj);
});
Task("Test")
.Does(() =>
{
var settings = new DotNetCoreTestSettings
{
Logger = "console;verbosity=detailed"
};
DotNetCoreTest(testCsproj, settings);
});
Task("CIDeploy")
.Does(() =>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment