├── .github └── ISSUE_TEMPLATE.md ├── CHANGELOG.md └── README.md /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Thank you for reporting an issue with SimonTest. When submitting an issue please include a snipet of code to reproduce the problem. Take the component file and delete everything not required to reproduce the error. 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ### [1.9.1] - 2021-10-15 2 | 3 | - Fix issue with unknown parameters 4 | 5 | ### [1.9.0] - 2020-10-03 6 | 7 | - Use TestBed.inject for Angular 9+ 8 | 9 | ### [1.8.10] - 2020-09-07 10 | 11 | - Add line breaks before major sections of the test file 12 | 13 | ### [1.8.9] - 2020-07-29 14 | 15 | - Don't include models in provider list 16 | 17 | ### [1.8.8] - 2020-06-07 18 | 19 | - Fix issue calling prototype methods of dependencies. 20 | 21 | ### [1.8.7] - 2020-05-15 22 | 23 | - Fix issue with property defaults of array of strings. 24 | 25 | ### [1.8.6] - 2020-03-15 26 | 27 | - Import RouterTestingModule if the template uses routerLink. 28 | 29 | ### [1.8.2] - 2020-03-01 30 | 31 | - Import FormsModule if the template uses ngModel. 32 | 33 | ### [1.6.0] - 2020-01-03 34 | 35 | - Use ng-cache-testing-module if it's in the project's package.json 36 | 37 | ### [1.5.2] - 2019-08-05 38 | 39 | - Fix issue with unused imports. 40 | 41 | ### [1.5.1] - 2019-07-23 42 | 43 | - Fix issue with stubs used by the constructor. 44 | 45 | ### [1.5.0] - 2019-07-21 46 | 47 | - Create better tests for HttpClient calls, using HttpClientTestingModule. 48 | 49 | ### [1.4.4] - 2019-07-15 50 | 51 | - Fix issue with not getting the stubbed parameter for methods in certain cases. 52 | 53 | ### [1.4.3] - 2019-06-14 54 | 55 | - Fix issue with direct imports in files. 56 | 57 | ### [1.4.1] - 2019-06-02 58 | 59 | - Fix issue with services referencing entire modules and setting default properties to undefined. 60 | 61 | ### [1.4.0] - 2019-05-12 62 | 63 | - Add DevExpress import when it detects a template uses a DevExpress control. 64 | 65 | ### [1.3.1] - 2019-05-04 66 | 67 | - Add "Ctrl + Shift + P" command (SimonTest: Update License) to add/update SimonTest License. 68 | 69 | ### [1.3.0] - 2019-04-28 70 | 71 | - Add parameters to function stubs 72 | 73 | ### [1.2.0] - 2019-04-20 74 | 75 | - Add .and.callThrough() to default spies. This makes it easier to add the logic to test things like services. 76 | 77 | ### [1.1.4] - 2019-03-11 78 | 79 | - Improve time to install the extension. 80 | 81 | ### [1.1.3] - 2019-03-10 82 | 83 | - Fix issue when getting user settings. 84 | 85 | ### [1.1.2] - 2019-03-07 86 | 87 | - Directive tests don't include assertions for default values. The recommended way to test them is via the elements themselves. 88 | 89 | ### [1.1.1] - 2019-03-04 90 | 91 | - Fix error with import \* and private properties 92 | 93 | ### [1.1.0] - 2019-03-03 94 | 95 | - Add scaffold tests for directives 96 | 97 | ### [1.0.5] - 2019-02-28 98 | 99 | - Fix error when right clicking a file while having another selected and open. It will process the right clicked file as expected. 100 | - Try to get quotation mark from the code when tslint isn't present or doesn't specify the quotation mark. 101 | 102 | ### [1.0.0] - 2019-01-19 103 | 104 | - 1.0 release 105 | 106 | ### [0.20.0] - 2018-12-24 107 | 108 | - Mock dependencies of services and pipes 109 | 110 | ### [0.19.0] - 2018-10-02 111 | 112 | - Use TestBed for injectables 113 | 114 | ### [0.18.1] - 2017-12-01 115 | 116 | - SimonTest can now read tslint and package.json files with comments in them. 117 | 118 | ### [0.18.0] - 2017-11-16 119 | 120 | - Add types to stubs 121 | 122 | ### [0.17.4] - 2017-11-04 123 | 124 | - Show better errors when something goes wrong. 125 | 126 | ### [0.17.3] - 2017-10-21 127 | 128 | - Fix tests for static properties. 129 | 130 | ### [0.17.2] - 2017-08-31 131 | 132 | - Fix issue generating new components (missing slash dependency) 133 | - Show warning if it can't find the appropriate module when generating a 134 | component 135 | 136 | ### [0.17.1] - 2017-08-28 137 | 138 | - Fix adding newly generated components to the module 139 | 140 | ### [0.17.0] - 2017-08-25 141 | 142 | - Generate scaffold for services 143 | 144 | ### [0.15.2] - 2017-07-30 145 | 146 | - Add error reporting 147 | 148 | ### [0.15.1] - 2017-07-29 149 | 150 | - Use const on pipe tests 151 | 152 | ### [0.15.0] - 2017-07-20 153 | 154 | - Generate scaffold for pipes 155 | 156 | ### [0.14.0] - 2017-06-26 157 | 158 | - Create .gen.spec.ts file when test already exists. 159 | 160 | ### [0.13.1] - 2017-06-20 161 | 162 | - Fix forEach error on some Components 163 | 164 | ### [0.13.0] - 2017-06-15 165 | 166 | - Now stubs models and passes them to methods that take them as parameters. 167 | 168 | ### [0.12.2] - 2017-06-11 169 | 170 | - Fix issue with private methods still getting tests generated. 171 | 172 | ### [0.12.1] - 2017-06-09 173 | 174 | - Fix issue where it created a test for private methods if they used injected 175 | services. 176 | 177 | ### [0.12.0] - 2017-06-06 178 | 179 | - Use `fixture.debugElement.injector.get` to get the stubbed services. 180 | 181 | ### [0.11.3] - 2017-04-16 182 | 183 | - Fix exception with implicit any parameter. 184 | 185 | ### [0.11.2] - 2017-04-15 186 | 187 | - Don't test private methods. 188 | 189 | ### [0.11.1] - 2017-04-09 190 | 191 | - Fix indentations. It correctly uses the editor's choice of tabs or spaces. 192 | 193 | ### [0.11.0] - 2017-04-08 194 | 195 | - Use the quotation marks specified in the tslint.json file 196 | 197 | ### [0.10.1] - 2017-03-31 198 | 199 | - Don't throw error when a method receives a parameter that's not a service. 200 | 201 | ### [0.10.0] - 2017-03-13 202 | 203 | - Create tests for when a method uses a service. 204 | 205 | ### [0.9.1] - 2017-02-19 206 | 207 | - Fix tests when a method calls another method already called by the 208 | constructor. 209 | 210 | ### [0.8.0] - 2017-02-15 211 | 212 | - Add newly generated components to the appropriate module. 213 | 214 | ### [0.7.0] - 2017-02-13 215 | 216 | - Create new components by right-clicking a component in the html 217 | 218 | ### [0.6.0] - 2017-02-11 219 | 220 | - Display warning if user tries to generate on a file that doesn't have a 221 | component. 222 | 223 | ### [0.5.1] - 2017-01-28 224 | 225 | - Fix issue with `import 'foo';` 226 | 227 | ### [0.5.0] - 2017-01-28 228 | 229 | - spy on all calls made by methods (on the same `it` block) 230 | 231 | ### [0.4.0] - 2017-01-27 232 | 233 | - Add tests when component methods call other methods (spying on them). 234 | - Spy on methods called by the constructor. 235 | - Spy on super methods. 236 | 237 | ### [0.3.2] - 2017-01-17 238 | 239 | - Fix indentation for stubbed properties. 240 | 241 | ### [0.3.0] - 2017-01-17 242 | 243 | - Initial release 244 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SimonTest 2 | Repository for SimonTest questions and issues https://simontest.net 3 | 4 | Please feel free to ask questions or report bugs/problems in the Issues section. 5 | --------------------------------------------------------------------------------