Closed lealobanov closed 2 months ago
The recent changes enhance the testing infrastructure and transaction handling within the Flow blockchain SDK. New methods for account creation simplify transaction submissions, while improved logging configurations increase observability. The tests have been refactored to streamline initialization and focus on emulator contexts, promoting better clarity and maintainability. These adjustments collectively improve the robustness and usability of the codebase, making it easier for developers to test and debug interactions with the Flow network.
File(s) | Change Summary |
---|---|
build.gradle.kts , logback.xml |
Introduced enhanced logging configurations for test tasks and specific loggers for Netty and gRPC, improving visibility and debugging during test executions. |
sdk/src/intTest/org/onflow/flow/sdk/IntegrationTestUtils.kt |
Added a method for creating and submitting account creation transactions; removed simpler API connection methods to enhance transaction handling capabilities. |
sdk/src/intTest/org/onflow/flow/sdk/cadence/JsonCadenceTest.kt , sdk/src/intTest/org/onflow/flow/sdk/transaction/TransactionCreationTest.kt |
Refactored tests to use new account creation methods and improved initialization using annotations, leading to clearer and more efficient test structures. |
sdk/src/intTest/org/onflow/flow/sdk/transaction/TransactionIntegrationTest.kt |
Restructured tests with new annotations for easier setup and clearer naming conventions, transitioning focus from mainnet to emulator interactions, enhancing test reliability. |
sequenceDiagram
participant User
participant SDK
participant FlowNetwork
User->>SDK: Create Account Request
SDK->>FlowNetwork: createAndSubmitAccountCreationTransaction
FlowNetwork->>SDK: Transaction Result
SDK->>User: Return Account Details
🐇 In the code’s lovely glade,
New pathways twist and wade.
Transactions flow with grace anew,
With logging bright, all's clear in view!
Testers hop, with joy they sing,
For every change, a brighter spring! 🌷
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?
0 files ±0 0 suites ±0 0s :stopwatch: ±0s 0 tests ±0 0 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 52f988ff. ± Comparison against base commit 52f988ff.
:recycle: This comment has been updated with latest results.
0 files ±0 0 suites ±0 0s :stopwatch: ±0s 0 tests ±0 0 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 52f988ff. ± Comparison against base commit 52f988ff.
:recycle: This comment has been updated with latest results.
2 files 2 suites 33s :stopwatch: 6 tests 6 :heavy_check_mark: 0 :zzz: 0 :x:
Results for commit 53b95ae5.
:recycle: This comment has been updated with latest results.
Description
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation