Debian Codegraph @

Changes

raw
1
2 Feature oriented Revision history for Test-DBIC-ExpectedQueries
3 ===============================================================
4
5 2.002 -- 2020-05-09 13:55:33 UTC
6
7 * Fix issue #6, sub-selects identifis table as "select".
8
9 New option "report_subselect_tables" to try to find the first table
10 actually selected from.
11
12
13 2.001 -- 2019-08-12 17:39:31 UTC
14
15 * Support a test description, and report the test correctly.
16
17 * Fix the stack trace so it's less spammy (filter out more common
18 infrastructure modules), and more readable.
19
20
21
22 2.000 -- 2019-07-17 21:14:39 UTC
23
24 * BREAKING CHANGE -- This release includes a bug fix to the
25 library. It now tests queries more comprehensively (i.e. all
26 queries).
27
28 You may find your tests now breaking when previously they didn't. If
29 this happens, you always had inaccurate tests but
30 Test::DBIC::ExpectedQueries didn't flag this up correctly.
31
32 This is the fault of this library, not your code. Sorry about that!
33
34 It is however your problem, and now you need to fix your tests.
35
36 If you need to make your tests pass immediately, pin the version to
37 pre 2.000, e.g. if you have a "cpanfile" in your project:
38
39 requires "Test::DBIC::ExpectedQueries", "< 2.0";
40
41 The fix you need to make is that the library will now report queries
42 that were supposed to run n times, but didn't run at all. Let's say
43 you have the check:
44
45 { book_lender => { select => 1 } }
46
47 You might see failures for queries that were supposed to run n times, but
48 didn't run at all, e.g.
49
50 Expected '1' inserts for table 'book_lender', got '0
51
52 Whether this is a problem or not depends on the situation. Either
53 you're happy that you're not making any redundant queries because
54 the information is cached or prefetched. Or this indicates a
55 problem, because something that you thought happened isn't.
56
57 In the former case, a useful fix is to either remove the line or to
58 relax the test:
59
60 { book_lender => { select => "<= 1" } }
61
62
63 1.011 -- 2015-11-05 15:18:09 UTC
64
65 * Bug fix: Avoid wantarray being masked inside try-catch block
66
67
68
69 1.010 -- 2015-09-23 22:16:24 UTC
70
71 * Bug fix: stack trace ignored classes
72
73
74
75 1.009 -- 2015-09-20 21:34:08 UTC
76
77 * Table level option "stack_trace" to show a strack trace for each SQL
78 query that fails.
79
80
81
82 1.008 -- 2015-04-27 14:49:49 UTC
83
84 * Replace Attribute::Exporter with Exporter::Tiny, since
85 Attribute::Exporter gone dun weird.
86
87
88
89 1.007 -- 2015-04-27 13:25:09 UTC
90
91 * Fixed prereq on Attribute::Exporter
92
93
94
95 1.006 -- 2015-02-23 09:14:44 UTC
96
97 * Fix #1 - Dereference hash for calling 'keys'
98 - patch by Syohei YOSHIDA (syohex)
99
100
101
102 1.005 -- 2015-02-22 17:58:28 UTC
103
104 * More POD improvements
105
106
107
108 1.004 -- 2015-02-20 17:30:45 UTC
109
110 * Default ->test() to an empty hashref
111
112 * Reset collected stats when calling ->test() properly!
113
114
115
116 1.003 -- 2015-02-20 16:48:11 UTC
117
118 * Reset collected stats when calling ->test().
119
120
121 1.002 -- 2015-02-20 14:34:10 UTC
122
123 * Even more better POD docs.
124
125
126
127 1.001 -- 2015-02-20 13:51:38 UTC
128
129 * POD
130
131
132
133 1.000 -- 2015-02-19 20:51:12 UTC
134
135 * First release