Improve test coverage
@ujjwalchadha is already working on this.
Since Oct 16, 2020.
- 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:
- 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).
- Test generated projections for WinUI. (There's a need to figure out how to test the XAML types. Also might need automated tests here).
- Test manual type mappings WinRt.Runtime/Projections
- Test other required files in WinRt.Runtime
- Test components in cswinrt/strings/additions
We might be able to do 2 types of testing here:
-
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.
-
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.