Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I come from a C++ background, but I'm currently working in Ada. In the C++ world, I unit test every class as I write it... this doesn't seem to be the vogue for our codebase here at work.
I'd like to start implementing unit tests for the Ada packages I create, are there any good frameworks out there that do this?
There are two open source JUnit-like unit testing frameworks around, AUnit and Ahven.
AUnit is good if you use Ada 2005 and GNAT compiler family. Downside is that you cannot use it in Ada 95 projects. Ahven fills the gap and concentrates on being compatible with various Ada 95 compilers (like older GNAT compilers, Janus/Ada, ObjectAda).
(PS. I am author of Ahven.)
Check out AUnit
tkoskine says that AUnit doesn't support Ada95; don't know where that came from, I've been using AUnit for the last 8 years on a project which is still Ada95!
VectorCAST/Ada has been around for awhile.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been programming a lot in college and have a basic understanding on how to program. All the time the programming environment was configured and all necessary files were provided. Even the source files were pre-filled, where I had to only add essential lines of code. Thus, I learned the programming language and how to code, but I have no idea what is necessary besides the code to make a working application.
Now, when I want to make my own application, what is necessary to have except the functional programming code? What files are created automatically for me (such as in MS Visual Studio 2008 C++), what other files/libraries should be included by me? What are the essential project settings i should pay attention to? etc.
Most of the tutorials I found cover programming essentials and rarely mention the questions above. If someone could name the topics that cover these questions, I would greatly appreciate. The links to educational sources would be welcome.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Which unit test framework is in your opinion the best? It should be possible to use with c++/cmake projects.
If possible it should have a eclipse plugin for it.
There are lots of unit test frameworks for C++. But I like Catch most. Its design is modern, and supports awesome features. It is a header-only library, so easy to use.
Check out the boost unit testing framework. Here's a link to a tutorial on how to use it. It's fairly straight fforward: tutorials
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm interested in learning about c++-unit-testing in the 'real-world'. I'd like to see a complex class with good test-coverage. Preferably tested with g-test or qtestlib. I had a look at KDE and Chromium but didn't find what I wanted.
Even if you have a proper knowledge of the gtest framework, in order to fully understand the test coverage you should first understand the project's needs and how it works.
That said, clang has a good unit tests coverage and code generation tests which often use advanced mocking techniques.
There's no silver bullet to your question since it's based on your personal experience and preferences.
I would recommend searching on github for gtest usage, and choosing an domain you could easily understand.
Modern C++ Programming with Test-Driven Development by Jeff Langr is a a great book for unit testing with C++ and gtest. It has lots of examples and good style.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
im starting a new project and for the first time i want to be cross-platform. But the tricky is my project would involve listen server, cryptos etc., etc. So i was wondering what is the best solution for cross-platform development (OpenSSL, instead of MSCrypto etc.) that would be easy to write with VS2010 (yeah the RC). The language is still not specified (depends on witch we would be easier) but im leaning to Visual C++.
In Cross-Platform i mean windows/generic unix compilation.
Qt4 is a complete crossplatform framework, including a very strong socket library.
also Boost.Asio http://www.boost.org/doc/libs/1_42_0/libs/libraries.htm.
The Poco C++ library may be what you are looking for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have a old windows application written in borland C++ 5.0. this uses the OWL library very much in it's code. this has to be ported to Visual studio 2005/2008 (C++ or C#). search in google shows lot of links but nothing quite concrete or useful. can anyone show the correct direction to start this? also share any pitfalls or best practices?
this is going to be a painful process to do. you may end up re-writing the entire application. before that consider OWLNext in sourceforge.
PS: I don't have any experience in doing this.
if you do not want to rewrite the entire application, your best bet is to migrate to OWLNext
(http://owlnext.sourceforge.net/).
First step will be to still use Borland C++ 5.0x, but upgrade the project to use OWLNext instead of the old OWL libraries.
After that, you can create a new VC++ project, add your sources there, build OWLNext for VC++ and start using it for further development.
Jogy