mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 11:14:35 +03:00
Merge pull request #23 from daniel-kun/master
Add Boost.Test to list of unit test frameworks
This commit is contained in:
@@ -10,6 +10,7 @@ Source control is an absolute necessity for any software development project. If
|
|||||||
* [Bitbucket](https://bitbucket.org/) - allows for unlimited private repositories with up to 5 collaborators, for free.
|
* [Bitbucket](https://bitbucket.org/) - allows for unlimited private repositories with up to 5 collaborators, for free.
|
||||||
* [SourceForge](http://sourceforge.net/) - open source hosting only.
|
* [SourceForge](http://sourceforge.net/) - open source hosting only.
|
||||||
* [GitLab](https://gitlab.com/), Subversion, BitKeeper, many many others... The above are the most popular free services.
|
* [GitLab](https://gitlab.com/), Subversion, BitKeeper, many many others... The above are the most popular free services.
|
||||||
|
* [Visual Studio Online](https://visualstudio.com)(http://www.visualstudio.com/what-is-visual-studio-online-vs) - allows for unlimited public repositories, must pay for private repository. Repositories can be git or TFVC. Additionally: Issue tracking, project planning (multiple Agile templates, such as SCRUM), integrated hosted builds, integration of all this into Microsoft Visual Studio. Windows only.
|
||||||
|
|
||||||
## Build Tool
|
## Build Tool
|
||||||
|
|
||||||
@@ -44,6 +45,12 @@ Continuous Integration (CI) tools automatically build the source code as changes
|
|||||||
* simple ad-hoc continuous integration that posts results to GitHub
|
* simple ad-hoc continuous integration that posts results to GitHub
|
||||||
* supports Windows, OS X, and Linux
|
* supports Windows, OS X, and Linux
|
||||||
* used by [ChaiScript](http://chaiscript.com/ChaiScript-BuildResults/full_dashboard.html)
|
* used by [ChaiScript](http://chaiscript.com/ChaiScript-BuildResults/full_dashboard.html)
|
||||||
|
* [Visual Studio Online](https://visualstudio.com)(http://www.visualstudio.com/what-is-visual-studio-online-vs)
|
||||||
|
* Tightly integrated with the source repositories from Visual Studio Online
|
||||||
|
* Uses MSBuild (Visual Studio's build engine), which is available on Windows, OS X and Linux
|
||||||
|
* Provides hosted build agents and also allows for user-provided build agents
|
||||||
|
* Can be controlled and monitored from within Microsoft Visual Studio
|
||||||
|
* On-Premise installation via Microsoft Team Foundation Server
|
||||||
|
|
||||||
If you have an open source, publicly-hosted project on GitHub:
|
If you have an open source, publicly-hosted project on GitHub:
|
||||||
|
|
||||||
@@ -180,7 +187,7 @@ If it is determined by team consensus that the compiler or analyzer is warning o
|
|||||||
|
|
||||||
CMake, mentioned above, has a built in framework for executing tests. Make sure whatever build system you use has a way to execute tests built in.
|
CMake, mentioned above, has a built in framework for executing tests. Make sure whatever build system you use has a way to execute tests built in.
|
||||||
|
|
||||||
To further aid in executing tests, consider a library such as [Google Test](https://code.google.com/p/googletest/) or [Catch](https://github.com/philsquared/Catch) to help you organize the tests.
|
To further aid in executing tests, consider a library such as [Google Test](https://code.google.com/p/googletest/), [Catch](https://github.com/philsquared/Catch) or [Boost.Test](http://www.boost.org/doc/libs/1_55_0/libs/test/doc/html/index.html) to help you organize the tests.
|
||||||
|
|
||||||
### Unit Tests
|
### Unit Tests
|
||||||
|
|
||||||
@@ -193,4 +200,3 @@ There should be a test enabled for every feature or bug fix that is committed. S
|
|||||||
### Negative Testing
|
### Negative Testing
|
||||||
|
|
||||||
Don't forget to make sure that your error handling is being tested and works properly as well. This will become obvious if you aim for 100% code coverage.
|
Don't forget to make sure that your error handling is being tested and works properly as well. This will become obvious if you aim for 100% code coverage.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user