Comments (3)
I'm currently working on improving the unit testing. We used Zephyr OS and ztest. We were planning to move the tests into their own modules (from being integrated), and port ztest to this project without dependency to Zephyr OS and use in place of ctest so that we also get mocks. The coverage using LCOV at the moment looks like this:
Did you have an alternate testing tool or path forward for test coverage report, @gocarlos ?
from bacnet-stack.
we use gtest which also works with C libraries, this testing library (C++) is widely available (debian, conan, vcpkg) and has different reporting techniques e.g. ala java JUnit's, built-in mocking library etc.
Then we also use cmake's built in ctest
, this allows us to have also valgrind testing, and costum tests with arguments e.g. if you have some test data and one test binary, you can create 10 tests by using 10 different arguments for the tests e.g. test --data 1
, example here: https://github.com/cose-wg/COSE-C/blob/master/test/CMakeLists.txt#L35
for code coverage we use gcovr
as it has a better user interface for us than lcov
though here we could also use a third party service like coveralls which is eben easier to use: https://github.com/marketplace/coveralls
from bacnet-stack.
Branch issue-87-execute_tests_with_github_ci created!
from bacnet-stack.
Related Issues (20)
- Problem with Analog_Input_Present_Value_Set HOT 3
- Schedule Write PROP_WEEKLY_SCHEDULE HOT 1
- segmentation support & BTL Cert HOT 3
- Zephyr hello_bacnet_stack sample build fail HOT 4
- ethernet.c file does not exist in ports/zephyr directory
- Linux Router app Makefile
- undefined reference to 'xxx_function' with cgo_gcc when build the golang codes with shared library HOT 4
- Update to Zephyr v3.6.0 HOT 1
- Life Safety Zone object support
- Inconsistent bacnet-config.h inclusion in header order HOT 1
- Inconsistant use of index/object_instance in ai.c
- the bacserv of MSTP in win32 work abnormal ! HOT 4
- NPDU: DNET=708. Discarded!
- Issue with writing schedule using /apps/writeprop/bacwp HOT 3
- Pipeline static analysis issues with Some hardware. HOT 1
- Invoke ID mismatch HOT 3
- Bacnet on linux HOT 1
- Structured-View-Object HOT 1
- Basic Objects av.c & ai.c have different Alarm_Ack functionality HOT 1
- how to work bacnetip and mstp together HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bacnet-stack.