blob: b7bb6ab8b0a3111b8f24caa71d0d9c22c44fed11 [file] [log] [blame]
onqtam8126b562016-05-27 17:01:15 +03001<!DOCTYPE html>
2<html>
3<title>faq</title>
4<xmp theme="united" style="display:none;">
5
6## FAQ
7
8#TODO...
9
10- linker issues? Make sure you have instantiated the test runner in only one source file.
11
12- stringification issues - if operator<<(ostream for a type is visible only in one source file...
13
14- why no regex and only wildcards
15
16- tests are ran serially - no multi-threaded execution planned for now
17
18- mocking is not included because it is orthogonal to testing and a different third party library may be used for that (google mock)
19https://github.com/tpounds/mockitopp
20
21- linker errors for ```doctest::detail::...``` when using ```DOCTEST_CONFIG_DISABLE```
22 solution: don't use anything from detail
23
24- property based testing - what it is and how to use it with doctest
25
26- tests in headers... might end up in different test suites - and only 1 of them will get registered? or might have ifdef-ed parts that get compiled differently based on how/where the header is included...... so not a good practice to write tests in header files
27
28- how subcases work - http://pastebin.com/rwghFzK4 - or look in the repo
29
30- why c++98? because.
31
32- will the library support checking for memory leaks? no. use tools like valgrind or the sanitizers.
33
34- mixing different versions of the framework within the same executable?
35 - unfortunately what single header libraries like [stb](https://github.com/nothings/stb) are doing is not feasible with this library.
36 - it could be done if tests are written only in source files where the library has been implemented with the ```DOCTEST_CONFIG_IMPLEMENT``` macro but that is very limiting.
37
38- is the VC++6 support full?
39 - no
40 - the stringification with ```ostream& operator<<(ostream&, myType)``` is disabled
41 - comparing C strings will compare the pointers and not the actual strings
42 - VC6 subcases not working - set a bounty on this: http://stackoverflow.com/questions/36940730/preprocessor-problems-with-vc6
43
44---------------
45
46[Home](readme.html#reference)
47
48
49</xmp>
50<script src="strapdown.js/strapdown.js"></script>
51</html>