Unit testing docs (#3698)

* Updating library-tests and associated documentation to be more informative

* Fixing heading markup for updated unit testing docs
This commit is contained in:
Quinn Chrzan
2017-02-13 09:58:46 -05:00
committed by Karen Shea
parent 38a1edfe3c
commit 1ed1bae249
2 changed files with 29 additions and 0 deletions
+6
View File
@@ -3,6 +3,7 @@
#include <string>
#include <vector>
#include <iostream>
inline std::vector<std::string> get_args()
{
@@ -10,6 +11,11 @@ inline std::vector<std::string> get_args()
const auto argc = boost::unit_test::framework::master_test_suite().argc - 1;
const auto argv = boost::unit_test::framework::master_test_suite().argv + 1;
if (argc == 0)
{
std::cout << "You must provide a path to the test data, please see the unit testing docs" << std::endl;
}
return {argv, argv + argc};
}