GithubHelp home page GithubHelp logo

Continuous integration about mimic1 HOT 12 CLOSED

mycroftai avatar mycroftai commented on June 11, 2024
Continuous integration

from mimic1.

Comments (12)

ryanleesipes avatar ryanleesipes commented on June 11, 2024

Sure. We have a TravisCI account. I'll set that up and hook you up.

from mimic1.

forslund avatar forslund commented on June 11, 2024

I am only familiar with coveralls but it doesn't seem to have as many features as coverity.

from mimic1.

zeehio avatar zeehio commented on June 11, 2024

Coverity does static code analysis while coveralls report code coverage. They are complementary I think. For C code I used coveralls in the past (I had forgotten its name, thanks @forslund)

So setting up Travis + coveralls + Coverity will be my first approach to deal with this.

from mimic1.

forslund avatar forslund commented on June 11, 2024

Sounds like a plan. We might have to use a different test-library if we want to have automated coverage testing. cutest isn't ideal if we want a single unittest executable (which I believe would be good for gcov output).

from mimic1.

zeehio avatar zeehio commented on June 11, 2024

I believe a single executable is not needed. I don't recall having problems with gcov and multiple executables in the past (my Travis + coveralls + coverity example is here)

from mimic1.

forslund avatar forslund commented on June 11, 2024

It's always great to be wrong =)

I've only used gcov-coverage with a small vim-plugin and as I recall the gcov output files was overwritten each time the software was started. Travis + coveralls + coverity are probably smarter than my little tool.

from mimic1.

LongBoolean avatar LongBoolean commented on June 11, 2024

I would encourage the use of asserts. Along with the mindset of, If an assert fires off, that is a bug, stop everything and fix it. If a particular assert was written for any other purpose than to catch a bug then it should not be an assert. (don't use asserts as if they are a message)

from mimic1.

LongBoolean avatar LongBoolean commented on June 11, 2024

Question: What does mimic currently use for unit testing? (coming over from flite)

from mimic1.

forslund avatar forslund commented on June 11, 2024

I rewrote the tests for flite that looked roughly like unittests using the minimal header-file-only cutest library. Mainly because it was simple and didn't require any extra libs.

from mimic1.

rhdunn avatar rhdunn commented on June 11, 2024

Asserts in library code are considered bad practice. This is because they can easily take down the application/daemon using them (e.g. an assistive technology application such as a screen reader), and provide little feedback of the problem to the user/application.

from mimic1.

forslund avatar forslund commented on June 11, 2024

Partially implemented in #27. Static code analysis remains to be completed.

from mimic1.

forslund avatar forslund commented on June 11, 2024

Merge of PR #29 resolves this issue. Closing

from mimic1.

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.