Commit Graph

12 Commits

Author SHA1 Message Date
Vitalii Koshura c799658363
[VS2019][Windows] Enable unit tests
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2020-06-29 23:39:49 +02:00
Vitalii Koshura 5fc277d47d
[Codecov] Fix uploading CodeCov reports
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2020-03-27 12:48:06 +01:00
Keith Uplinger 4928cc9623 Fix to xml_unescape function for multiple escape values.
Added unit tests for parse.cpp to prove xml_unescape is working properly.
2019-05-29 15:02:36 -05:00
Keith Uplinger be63e62ede Tests: Get unit tests for url.cpp to 100% coverage. 2019-05-28 21:52:01 -05:00
Christian Beer e80e68f9f5 Tests: more unit tests for str_util.cpp 2019-05-08 16:59:27 +02:00
Christian Beer ae829e4ecf Tests: more unit tests for str_util.cpp
Should now cover all cases for testable functions in this file.
2019-05-06 23:13:42 +02:00
Christian Beer db57e0f473 Tests: Add unit tests for str_util.cpp
Changed ASSERT_* calls to EXPECT_* as the former aborts the testrun immediately and the latter will run the remaining tests and mark the run as failed in the end.
The remaining functions either don't need testing or need the googlemock framework to do proper testing.
2019-05-04 20:13:51 +02:00
Christian Beer 1cff4939b8 Tests: tweak test build script
Do a rebuild from scratch only if requested. This allows fast local testing of new or changes test cases.
Don't need to call gcov ourselves as this is done by codecov too.
2019-04-27 16:46:50 +02:00
Christian Beer db60c1ea7a Tests: enable coverage processing 2019-04-20 19:03:12 +02:00
Christian Beer 65096902c1 Tests: adjust mysql library detection for Travis CI Ubuntu image 2019-04-20 13:50:22 +02:00
Christian Beer 6dbf55fd9a Tests: add unit testing framework using googletest
* enable coverage reports from gcc and disable optimizations via option to configure
* install googletest library into buildcache
* script to compile and run unit tests using cmake
* first set of unit tests originaly contributed by Keith Uplinger

There are several hardcoded paths and assumptions made in order to get this working on Travis CI. New tooling is using cmake for cross platform builds and as such is not easy to use with an autotools based system.
It's not ideal but better than nothing.
2019-04-20 13:30:03 +02:00
Christian Beer 231f1b997e Test: Move old test code
Keep it around for reference when designing new tests. Added a readme so new contributors are not confused.
2019-04-13 14:57:23 +02:00