microsoft / PowerApps-TestEngine

MIT License
98 stars 29 forks source link

Unit tests non-discoverable running locally. #235

Closed NavneetThekkumpat closed 1 year ago

NavneetThekkumpat commented 1 year ago

Problem

When run locally, unittests are non-discoverable.

Solution

The output directory for each project needs to have the target attribute.cs file generated. Setting GenerateTargetFrameworkAttribute to false in the Directory.Build.props would result in this C# source file not generated. Previously, the below marked file was not generated.

image

This would have adverse effect when targeting the right version.

Thus, the tests are discovered correctly solving this issue.

Checklist

github-actions[bot] commented 1 year ago

Code Coverage

Package Line Rate Branch Rate Complexity Health
Microsoft.PowerApps.TestEngine 91% 88% 819
Summary 91% (2157 / 2380) 88% (498 / 564) 819

Minimum allowed line rate is 50%