8000 refactor(test): enhance type safety and usability with Kotlin reflections by Ahoo-Wang · Pull Request #1476 · Ahoo-Wang/Wow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(test): enhance type safety and usability with Kotlin reflections #1476

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

Ahoo-Wang
Copy link
Owner
  • Update Kotlin plugin version to 2.1.21
  • Add new inspection tool settings
  • Implement KClass support in test stages for better type safety
  • Add expectEventType and expectErrorType functions using KClass
  • Update nextEvent and nextCommand functions to use KClass
  • Improve code readability and reduce boilerplate with reified type parameters

…ions

- Update Kotlin plugin version to 2.1.21
- Add new inspection tool settings
- Implement KClass support in test stages for better type safety
- Add expectEventType and expectErrorType functions using KClass
- Update nextEvent and nextCommand functions to use KClass
- Improve code readability and reduce boilerplate with reified type parameters

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang added the enhancement New feature or request label May 14, 2025
Copy link
Contributor
github-actions bot commented May 14, 2025

Test Results

1 327 tests  ±0   1 310 ✅ ±0   11m 27s ⏱️ -52s
  340 suites ±0      17 💤 ±0 
  340 files   ±0       0 ❌ ±0 

Results for commit 6a277c7. ± Comparison against base commit 7d2502e.

♻️ This comment has been updated with latest results.

- Add overloads for nextEvent and nextCommand methods in Stages classes
- Allow usage of Java class references in addition to KClass
- Improve type safety and flexibility in event and command handling

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang merged commit 575457e into main May 14, 2025
29 checks passed
@Ahoo-Wang Ahoo-Wang deleted the test branch May 14, 2025 03:00
Copy link
codecov bot commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.93%. Comparing base (7d2502e) to head (6a277c7).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1476   +/-   ##
=========================================
  Coverage     90.93%   90.93%           
  Complexity     3483     3483           
=========================================
  Files           656      656           
  Lines         12075    12075           
  Branches        775      775           
=========================================
  Hits          10980    10980           
  Misses          720      720           
  Partials        375      375           
Flag Coverage Δ
unittests 90.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0