Giter Club home page Giter Club logo

Comments (3)

skarg avatar skarg commented on May 29, 2024

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:
2020-04-15 BACnet Stack LCOV

Did you have an alternate testing tool or path forward for test coverage report, @gocarlos ?

from bacnet-stack.

gocarlos avatar gocarlos commented on May 29, 2024

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.

create-issue-branch avatar create-issue-branch commented on May 29, 2024

Branch issue-87-execute_tests_with_github_ci created!

from bacnet-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.