microsoft / microsoft/CsWinRT

Improve test coverage

Open
#506 1 comment 0 reactions 1 assignee View on GitHub

@ujjwalchadha is already working on this.

Since Oct 16, 2020.

testing
Dominant language
C#
Stars
665
Forks
134
Avg merge
1d 3h
Merged PRs (30d)
32

Description

The current test coverage of CsWinRt seems to exclude some important scenarios. There's a need for a robust testing plan and test cases that can cover most of the APIs. I see the following scenarios at the moment for testing:

  1. Test the generated projections for Windows SDK (Not sure if it's possible to test all the APIs manually. We might be able to come up with some automated tests).
  2. Test generated projections for WinUI. (There's a need to figure out how to test the XAML types. Also might need automated tests here).
  3. Test manual type mappings WinRt.Runtime/Projections
  4. Test other required files in WinRt.Runtime
  5. Test components in cswinrt/strings/additions

We might be able to do 2 types of testing here:

  1. Calling the API methods and properties to check for NullReferenceException, InvalidCastExceptions etc: These types of tests might be automated. And we can test a lot more APIs as there is no logic check required.

  2. Checking if the APIs give the expected output: These tests will require individual manual tests. We can test some but not all the APIs.

List of focus areas:

  • Manual Type Mappings
  • Derived/Composable types #463
  • WinUI IReferenceTracker validation
  • #1061
  • #778
  • Enable x86 testing #341
  • #1060

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.