C/C++ Unit Test's for hMailServer

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 1423
Joined: 2015-09-26 11:50
Location: Germany
Contact:

C/C++ Unit Test's for hMailServer

Post by Dravion » 2019-08-04 21:22

This Topic will discuss hMailServers ongoing Unit Test procedures

For more informations about Unit Tests read: https://en.wikipedia.org/wiki/Test-driven_development

Goals of Unit Testing
*Unit testing improves the quality of the code; it identifies every defect which may have aroused, before code is sent further for integration testing.
*Since the bugs are found early in unit testing, it helps reducing the effort of later bug fixing.
*Unit Testing provides a basic Documentation for Developers to learn the code and understand the inner workings.

Popular Unit Test Frameworks

Google Test (stand alone, independent Unit Testing System
https://github.com/google/googletest/

Boost Test (comes with BOOST)
https://www.boost.org/doc/libs/1_70_0/l ... index.html

Stackoverflow discussion Google Test vs. BOOST Tests
https://stackoverflow.com/questions/477 ... -framework

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: C/C++ Unit Test's for hMailServer

Post by martin » 2019-08-05 11:25

From what I've read Google Test seems to be the easiest to use, and it has a permissive license s i think we should try that one. I think we should just implement this on the master-branch and not in previous versions.
Martin Knafve
martin@hmailserver.com
https://twitter.com/knafve

User avatar
Dravion
Senior user
Senior user
Posts: 1423
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: C/C++ Unit Test's for hMailServer

Post by Dravion » 2019-08-05 12:10

Ok, i will start as soon as you pushed your latest comits to the master branch.

Post Reply