Skip to content
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

Feat: Native SDK unit tests part 1 #325

Open
wants to merge 11 commits into
base: next
Choose a base branch
from

Conversation

AdityaKasar
Copy link
Contributor

@AdityaKasar AdityaKasar commented Sep 23, 2024

Unit tests with google test framework, dependency updates

Changes pulled in from PR 315

@CLAassistant
Copy link

CLAassistant commented Sep 23, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

Core SDK - MFOS standalone sanity report:
Passes - 178 Failures - 0 Pending - 0 Skipped - 8
Report JSON/HTML Files: https://github.com/rdkcentral/firebolt-apis/suites/28741814022/artifacts/1967917095
Job Logs: https://github.com/rdkcentral/firebolt-apis/actions/runs/11000481742


Firebolt::Advertising::AdvertisingId actualValues= Firebolt::IFireboltAccessor::Instance().AdvertisingInterface().advertisingId(options, &error);

ASSERT_EQ(error, Firebolt::Error::None) << "Error occurred during advertisingId call";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can we print the error we get if we get one?
  2. Can this logging be done in all tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified all tests with appropriate logging

}


TEST_F(CapabilitiesTest, TestCapabilitiesinfo) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have some more clarity through comments on what's being tested here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still needs to be addressed. but somehow became outdate. will keep this open until being addressed

EXPECT_EQ(actualValue.type, expectedValues.type);
}

TEST_F(DeviceTest, DeviceScreenResolution)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a difference between this test and the one at line 243?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spot! there was a correction in test name, the correct name for the other test is TEST_F(DeviceTest, VideoResolution). Now corrected.

@AdityaKasar AdityaKasar force-pushed the feature/core-sdk-unit-test branch 2 times, most recently from 63b0c64 to d34b44d Compare September 24, 2024 05:19
Copy link

Core SDK - MFOS standalone sanity report:
Passes - 178 Failures - 0 Pending - 0 Skipped - 8
Report JSON/HTML Files: https://github.com/rdkcentral/firebolt-apis/suites/28759660012/artifacts/1969783867
Job Logs: https://github.com/rdkcentral/firebolt-apis/actions/runs/11007474285

Copy link

Core SDK - MFOS standalone sanity report:
Passes - 178 Failures - 0 Pending - 0 Skipped - 8
Report JSON/HTML Files: https://github.com/rdkcentral/firebolt-apis/suites/28759733015/artifacts/1969789541
Job Logs: https://github.com/rdkcentral/firebolt-apis/actions/runs/11007502738

@parag-pv parag-pv changed the title Core SDK Unit tests Feat: Native SDK unit tests part 1 Sep 24, 2024
Copy link

Core SDK - MFOS standalone sanity report:
Passes - 178 Failures - 0 Pending - 0 Skipped - 8
Report JSON/HTML Files: https://github.com/rdkcentral/firebolt-apis/suites/28804000431/artifacts/1974295838
Job Logs: https://github.com/rdkcentral/firebolt-apis/actions/runs/11023318309

@AdityaKasar AdityaKasar force-pushed the feature/core-sdk-unit-test branch from b3de5d7 to eafe257 Compare September 25, 2024 10:44
@rdkcmf-jenkins
Copy link

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/firebolt-apis/325/rdkcentral/firebolt-apis

  • Commit: eafe257

Report detail: gist'

@AdityaKasar AdityaKasar force-pushed the feature/core-sdk-unit-test branch from eafe257 to 24e2020 Compare September 25, 2024 10:48
@rdkcmf-jenkins
Copy link

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/firebolt-apis/325/rdkcentral/firebolt-apis

  • Commit: 24e2020

Report detail: gist'

Copy link

Core SDK - MFOS standalone sanity report:
Passes - 178 Failures - 0 Pending - 0 Skipped - 8
Report JSON/HTML Files: https://github.com/rdkcentral/firebolt-apis/suites/28824448821/artifacts/1976344137
Job Logs: https://github.com/rdkcentral/firebolt-apis/actions/runs/11031420916

Copy link

Core SDK - MFOS standalone sanity report:
Passes - 178 Failures - 0 Pending - 0 Skipped - 8
Report JSON/HTML Files: https://github.com/rdkcentral/firebolt-apis/suites/28824629425/artifacts/1976360397
Job Logs: https://github.com/rdkcentral/firebolt-apis/actions/runs/11031488213

@rdkcmf-jenkins
Copy link

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: OK

  • Commit: 24e2020
    '

@parag-pv
Copy link
Contributor

parag-pv commented Oct 2, 2024

Moved to #328
@AdityaKasar please close this PR

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

Successfully merging this pull request may close these issues.

5 participants