rudderlabs / rudder-sdk-android

Android SDK for RudderStack - the Customer Data Platform for Developers.
https://www.rudderstack.com
Other
18 stars 28 forks source link

fix: unit test cases #418

Closed 1abhishekpandey closed 3 months ago

1abhishekpandey commented 3 months ago

Description

Known Issue: A few unit tests are still failing, but this issue is unrelated to the changes made in the Gradle version. The affected module is models. The failing test cases of this module should be addressed in this: https://github.com/rudderlabs/rudder-sdk-android/pull/400/commits/38547b6df0e923e9737f254474f32dbb303f8dfe.

Fixes # (issue)

Type of change

1abhishekpandey commented 3 months ago

We have decided to use Mockito wherever possible instead of mockk (for the time being). So, I reverted all the changes in the CentralPluginChainTest class and resolved the code issue that was causing the unit test to fail and also used concrete Message class; instead of mocking the sealed Message class.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud