Commit Graph

32 Commits

Author SHA1 Message Date
Tim Schaub 2e6dd3b251 Run tests as a GitHub CI workflow 2020-05-16 23:37:25 -06:00
Tim Schaub 4d9975754f Mapbox vector layer 2020-05-03 16:07:27 -06:00
Tim Schaub 054af09032 Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier.  Most formatting changes were automatically applied with this:

    npm run lint -- --fix

A few manual changes were required:

 * In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
 * In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason.  While editing this, I reworked `ExampleBuilder` to be a class.
 * In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Tim Schaub b7b37f9548 Add worker loader to the tests 2019-05-15 16:49:54 -06:00
Olivier Guyot d3e6f4c3b2 Restore code coverage in Karma config
The transpiling step is done by babel instead of bublé now.
Bublé caused the istanbul instrumenter step to crash because of an
unexpected SourceMap object format.
2019-05-03 15:15:14 +02:00
ahocevar 974684ed2b Use Puppeteer for tests 2019-02-18 23:54:20 +01:00
Tim Schaub 680ce960e1 Test Chrome with CircleCI 2018-11-05 09:54:16 -07:00
ahocevar 47c58d8a34 Transpile sources for testing 2018-07-18 17:54:29 +02:00
ahocevar da755d9e84 Make tests (and sourcemap) work with webpack4 2018-06-08 13:00:10 +02:00
Tim Schaub 48cbca1f6e Upgrade to Webpack 4 2018-06-07 11:24:39 +02:00
ahocevar 263e3c309a Trying different SauceLabs config to work around Firefox issue 2018-03-15 10:23:36 +01:00
Tim Schaub 63a5477479 Tolerate disconnects 2017-12-14 13:08:40 +01:00
Frederic Junod 6451d37570 Set Chrome version to 62.0 in SauceLab config 2017-12-14 11:33:09 +01:00
Tim Schaub 50737f7f73 Remove unused code, get tests passing on Travis 2017-12-12 06:58:02 -07:00
Tim Schaub b0c0166e9b Preprocess test scripts with webpack 2017-12-12 06:56:19 -07:00
Tim Schaub a2c5ce6925 Retry if sauce connect fails 2017-11-11 10:54:13 -07:00
Andreas Hocevar ab16457d90 Do not calculate coverage when running tests locally
Having the coverage calculation code in the test files makes it hard to debug
tests, so it is better to only analyze coverage on Travis, and not locally.
2017-09-02 17:19:04 +02:00
Andreas Hocevar bfc3a14a2d Enable Edge tests on SauceLabs 2017-08-31 22:31:43 +02:00
Andreas Hocevar 097c7b689a Try a different configuration to make SauceConnect work in Travis again 2017-08-31 21:04:30 +02:00
Andreas Hocevar 683e46bd58 Enable Travis tests in Safari 2017-08-30 09:35:09 +02:00
Marc Jansen 33adabf168 Bring back the progress reporter 2017-08-22 21:31:15 +02:00
Marc Jansen 53214f6ae1 Bring back coverage reporting 2017-08-19 19:46:34 +02:00
Andreas Hocevar b710c1f76e Use pixelmatch instead of resemble.js 2017-08-17 08:40:53 -04:00
Tim Schaub 1cad1ffab6 Name tests like the pull request 2017-08-16 16:38:53 -04:00
Tim Schaub ea5484d676 Avoid Edge and Safari for now 2017-08-16 16:16:16 -04:00
Tim Schaub 1fdef48812 Run tests on Sauce 2017-08-16 16:07:31 -04:00
Tim Schaub 5d0b1efba7 Fix typos 2017-08-16 14:36:49 -04:00
Tim Schaub 02b2cdbd27 Remove unused tasks and update instructions 2017-08-16 13:45:13 -04:00
Tim Schaub fb820f4b81 Run tests on Firefox in Travis 2017-08-16 13:45:13 -04:00
Tim Schaub 0dfd6da5a9 Run rendering tests with the rest of the tests 2017-08-16 13:35:32 -04:00
Tim Schaub 8e91d51d7c Provide Karma with updated dependencies on change 2017-08-16 13:35:31 -04:00
Tim Schaub 44a976eb60 Run tests in real browsers with Karma 2017-08-16 13:35:31 -04:00