blob: 99ca2a5a4a39f77a965f5981731f2df83c6ebfc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN
#include <iostream>
#include <vector>
using namespace std;
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END
DOCTEST_MSVC_SUPPRESS_WARNING(4820)
DOCTEST_MSVC_SUPPRESS_WARNING(4626)
DOCTEST_MSVC_SUPPRESS_WARNING(5027)
using namespace doctest;
struct XmlReporter : public IReporter
{
std::ostream& s;
std::vector<SubcaseSignature> subcasesStack;
// caching pointers to objects of these types - safe to do
const ContextOptions* opt;
const TestCaseData* tc;
XmlReporter(std::ostream& in)
: s(in) {}
void test_run_start(const ContextOptions& o) override { opt = &o; }
void test_run_end(const TestRunStats& /*p*/) override {}
void test_case_start(const TestCaseData& in) override { tc = ∈ }
void test_case_end(const CurrentTestCaseStats& /*st*/) override {}
void subcase_start(const SubcaseSignature& /*subc*/) override {}
void subcase_end(const SubcaseSignature& /*subc*/) override {}
void log_assert(const AssertData& /*rb*/) override {}
void log_message(const MessageData& /*mb*/) override {}
void test_case_skipped(const TestCaseData& /*tc*/) override {}
};
XmlReporter r(std::cout);
DOCTEST_REGISTER_REPORTER("xml", 1, r);
TEST_CASE("better message needed") {
CHECK(false);
SUBCASE("subcase 1") {
CHECK(false);
}
CHECK(false);
}
fix discoverability of subcases
https://github.com/catchorg/Catch2/commit/de36b2ada6e4593a9a32c4c86cd47d4bc002b148
try to forward declare std::string and specialize the string maker for it or something like that
https://github.com/philsquared/Catch/issues/980
https://github.com/catchorg/Catch2/commit/00af677577973758b3b35e1c94ab4142c45c3f67
https://github.com/catchorg/Catch2/commit/11f716f28d6621d1e54cf13374f8b5dd1a7489f5
https://github.com/catchorg/Catch2/commit/22ac9d2184b3868cccfd635eb631d0eee1529121
https://github.com/catchorg/Catch2/commit/0b1f1b10030942c38ca8c1b95140b0c65efc903e
== when making a new release:
news.ycombinator.com
isocpp.org
reddit.com/r/cpp
reddit.com/r/programming
reddit.com/r/gamedev
reddit.com/r/cplusplus
https://www.linkedin.com/groups/86782/profile
twitter
on big releases: update benchmarks, number of CI builds, differences with Catch, docs, etc.
also check if anything should be added here:
https://github.com/martinmoene/catch-lest-other-comparison
== how to deal with pull requests for the main branch instead of the dev branch
- http://stackoverflow.com/questions/9135913/merge-pull-request-to-a-different-branch-than-default-in-github
- git fetch origin pull/ID/head:BRANCHNAME << BRANCHNAME should be a new local branch! and then rebase it
== other
- operator<< trouble
- see how Catch is implementing their IsStreamInsertable trait for C++11
- https://github.com/philsquared/Catch/issues/757
- https://github.com/philsquared/Catch/issues/872
- https://github.com/philsquared/Catch/pull/877
- https://github.com/philsquared/Catch/issues/880
- toString trouble - https://github.com/philsquared/Catch/issues/741
- https://github.com/philsquared/Catch/commit/33ed1773f40b406dbf3b7201bf52694bd86b1503
- I suspect -Wsign-compare is not being silenced by the pragmas...
see this build - https://travis-ci.org/onqtam/game/jobs/196987454
check_eq(numDigits(0), 1); numDigits returns uint32
|