-
-
Notifications
You must be signed in to change notification settings - Fork 116
[Bmm150] Fix unit tests #1207
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
[Bmm150] Fix unit tests #1207
Conversation
- Brought back unit test class and method. - Fix call to Bmm150TrimRegisterData constructor. - Update code accordingly. - Migrate to new Assert API. - Add new asserts to check Bmm150TrimRegisterData properties. - Update test framework nuget. - Migrate solution to VS2022.
WalkthroughThis pull request involves updating the Changes
Assessment against linked issues
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (1)
🔇 Additional comments (2)devices/Bmm150/Bmm150.tests/packages.lock.json (2)
The update of
Since this is a test framework update as part of fixing unit tests, please ensure all Bmm150 tests execute successfully with the new version. Run this script to find all Bmm150 test files: ✅ Verification successfulLet me check the test file content to verify the test implementation and assertions. Tests are using the updated framework correctly The test implementation shows proper usage of the updated test framework:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Find all Bmm150 test files to verify test coverage
# Look for test files in the Bmm150 tests directory
fd -e cs . devices/Bmm150/Bmm150.tests -x echo "Test file: {}"
# Look for test attributes and methods to verify migration to new Assert API
rg -l "TestMethod|Assert\." devices/Bmm150/Bmm150.tests
Length of output: 285 Script: #!/bin/bash
# Check the content of the test file to verify test methods and assertions
rg -A 3 "TestMethod|Assert\." devices/Bmm150/Bmm150.tests/Bmm150Tests.cs
Length of output: 1519 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist:
Summary by CodeRabbit
nanoFramework.TestFrameworkdependency version from3.0.47to3.0.49.