GithubHelp home page GithubHelp logo

Comments (8)

lpabon avatar lpabon commented on July 3, 2024

I think we could add a new parameter to run_tests() which would use __FILE__ and pass it to _run_test(). Then _run_test() could add it as an entry to XunitTestCase. I think that would work.

from cmockery2.

jeremfg avatar jeremfg commented on July 3, 2024

I don't think this would achieve the intended result...

Granted, this would provide a filename, but what we want is the filename where the function under test resides, like we have inside each "assert_xxx" function".

Your suggestion, if I understand the layout of cmockery2 correctly, would provide only the file where the main function resides...

from cmockery2.

lpabon avatar lpabon commented on July 3, 2024

Ah, I understand now. Good question, if I come up with an answer I will let you know. Also, FYI, you may want to check out Cmocka. They are actively continuing development of cmockery.

from cmockery2.

jeremfg avatar jeremfg commented on July 3, 2024

Wow, a lot has happened in the last few months with Cmocka... Making it a lot more attractive than it used to be.

We've evaluated it back in January and partly discarded it as an option for lack of xUnit-style xml output support. This was a requirement to fit with our development process and integration with our continuous integration setups.

I'll see if it's not too late to switch over to Cmocka at this point, but I fear it might be. We have a few subcontracted companies already using cmockery2 per previous agreement when we decided to unify our unit-testing strategies.

The support of a detailed report inside sonar is only a "Nice-to-have" as we have good reporting elsewhere by other tools already. So for us cmockery2 is still a good option :)

I'll keep an eye out in case you come up with a clever idea.

Thank you!

from cmockery2.

lpabon avatar lpabon commented on July 3, 2024

This is great news. I didn't think people were using it. I will keep cmockery2 alive and let you know if/when I figure out how to enable your request.

from cmockery2.

jeremfg avatar jeremfg commented on July 3, 2024

I don't want to get your hopes up too high :)... Although we have committed to use Cmockery2 a couple of months ago and are very happy with it, I'm still very much interested in investigating the possibility of a switch to CMocka.

I was especially attracted to it after you've shown me it's obvious return to active development with the 1.0 release, increase in quality and larger adoption it seemed to have gained lately... All good points for increased confidence over the long term.

And they finally added the feature of XML reporting it was sadly missing up to last February.

I'll keep you informed on what we choose to do...

from cmockery2.

jeremfg avatar jeremfg commented on July 3, 2024

We've discussed this a little internally, and since there is no compelling argument to move we'll be sticking with CMockery2.

from cmockery2.

lpabon avatar lpabon commented on July 3, 2024

Cool! I'll let you know if I come up with a method to satisfy your request.

from cmockery2.

Related Issues (13)

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.