Comments (8)
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.
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.
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.
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.
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.
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.
We've discussed this a little internally, and since there is no compelling argument to move we'll be sticking with CMockery2.
from cmockery2.
Cool! I'll let you know if I come up with a method to satisfy your request.
from cmockery2.
Related Issues (13)
- make install error with master HOT 4
- Document a simple test
- Debian Package HOT 1
- a question for help HOT 5
- Add coveralls.io support HOT 1
- Update FreeBSD distinfo to 1.3.9
- [CFakeLib] Would you like to add the library or link it? HOT 2
- expect_check() and expect_in_set() are broken HOT 1
- cast_to_largest_integral_type() strips 64-bits values down to 32-bits
- Google has revived it??
- Profiling output issue in Fedora rpms HOT 2
- Update installation documentation 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 cmockery2.