()
| 113 | // RUNNING TESTS |
| 114 | |
| 115 | initSpecFiles () { |
| 116 | this.specFiles = TestView.getAllSpecFiles() |
| 117 | if (this.subPath) { |
| 118 | const prefix = TEST_REQUIRE_PREFIX + this.subPath |
| 119 | return this.specFiles = ((() => { |
| 120 | const result = [] |
| 121 | for (const f of Array.from(this.specFiles)) { |
| 122 | if (_.string.startsWith(f, prefix)) { |
| 123 | result.push(f) |
| 124 | } |
| 125 | } |
| 126 | return result |
| 127 | })()) |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | static runTests (specFiles, demosOn, view) { |
| 132 | if (demosOn == null) { demosOn = false } |
no test coverage detected