Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and enable MVVM Toolkit source generator unit tests #4198

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Enable source generator tests in CI
Sergio0694 committed Aug 27, 2021
commit 33bdd300944c982b8c55f0ddc07bd045f7a99396
12 changes: 12 additions & 0 deletions build/build.cake
Original file line number Diff line number Diff line change
@@ -270,6 +270,18 @@ Task("Test")
ArgumentCustomization = arg => arg.Append($"-s {baseDir}/.runsettings /p:Platform=AnyCPU"),
};
DotNetCoreTest(file.FullPath, testSettings);
}).DoesForEach(GetFiles(baseDir + "/**/UnitTests.SourceGenerators.csproj"), (file) =>
{
Information("\nRunning NetCore Source Generator Unit Tests");
var testSettings = new DotNetCoreTestSettings
{
Configuration = configuration,
NoBuild = true,
Loggers = new[] { "trx;LogFilePrefix=VsTestResults" },
Verbosity = DotNetCoreVerbosity.Normal,
ArgumentCustomization = arg => arg.Append($"-s {baseDir}/.runsettings /p:Platform=AnyCPU"),
};
DotNetCoreTest(file.FullPath, testSettings);
}).DeferOnError();

Task("UITest")