Commit f09d209
committed
Use mocks
Behavior for REPL tests has been inconsistent across the board.
For example, see
https://ci.appveyor.com/project/kgryte/stdlib/build/2659/job/bi7n1aynmty3yhvr
In short, `close` events would often not fire and the process would
die, causing downstream events, such as subsequent tests would
never run. The main aim of the REPL tests is to ensure that a REPL
starts, with an eye toward ensuring that all dependencies are
capable of being loaded into the REPL (i.e., no broken requires).
Using mocks still satisfies these concerns, as the REPL context is
still populated on the mock REPL dependency.1 parent 697b5a7 commit f09d209
1 file changed
+41
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
103 | 115 | | |
104 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
105 | 123 | | |
106 | 124 | | |
107 | 125 | | |
108 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
109 | 129 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
125 | 146 | | |
126 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
127 | 154 | | |
128 | 155 | | |
129 | 156 | | |
130 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
131 | 160 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
0 commit comments