-
Notifications
You must be signed in to change notification settings - Fork 53
Fix #8, Add sample app tests #26
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
Conversation
4f39222
to
64b5704
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to replace the #include of the *.c file?
CCB 20200122 - Discussed, the issue is accessing private members. Meeting standard of not #include .c is higher priority than proper scoping (static) |
0e89595
to
c444468
Compare
Use the UT Assert framework and stubs provided by other modules to perform unit testing on the SAMPLE_APP. This gets 100% line coverage on the current implementation.
c444468
to
a029470
Compare
The latest commit rebases this to "master" and removes the wrapper, compiling the FSW file directly as part of coverage test. Should be good to go. |
We decided to keep the 6.7 comment fix here.
Describe the contribution
Fixes #8
Adds a complete example unit test to the Sample Application. Uses the UT assert framework with common stubs provided by CFE and other modules.
Obtains 100% line coverage on the current app implementation.
Testing performed
Build with SIMULATION=native ENABLE_UNIT_TESTS=TRUE
Execute the unit tests per "make test" and confirm correct output
Execute "make lcov" to collect coverage statistics
Verified that the Sample application is included in results and achieves 100% line coverage.
Expected behavior changes
No changes to FSW.
System(s) tested on:
Ubuntu 18.04 LTS 64 bit
Additional context
There is a bug in the application implementation, described in #25. The unit tests actually will fail until this is fixed.
Contributor Info
Joseph Hickey, Vantage Systems, Inc.
Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted