Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch test progress to use the karma-spec-reporter. #829

Merged
merged 3 commits into from
May 30, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented May 25, 2018

Instead of printing test progress like

JS 2.1.1 (Linux 0.0.0): Executed 89 of 1022 SUCCESS (0 secs / 0 secs)

this prints information like

  geo.annotation
    geo.annotation.lineAnnotation
      ✓ _coordinates

For coverage tests, I've set it to only print failures. This will make it easier to read through results on CI.

Also, the colorLegend test was failing when run without coverage but passing when run with coverage. This has to do with how browsers are invoked, and was the result of a shift the location of the map element. This location is now used to determine where to perform a mouse test, resulting in identical results regardless of coverage. By fixing how a mouse event was created in PhantomJS, PhantomJS now gets identical results to Firefox.

Instead of printing test progress like
```
JS 2.1.1 (Linux 0.0.0): Executed 89 of 1022 SUCCESS (0 secs / 0 secs)
```
this prints information like
```
  geo.annotation
    geo.annotation.lineAnnotation
      ✓ _coordinates
```

For coverage tests, I've set it to only print failures.  This will make
it easier to read through results on CI.

Also, the colorLegend test was failing when run without coverage but
passing when run with coverage.  This has to do with how browsers are
invoked, and was the result of a shift the location of the map element.
This location is now used to determine where to perform a mouse test,
resulting in identical results regardless of coverage.  By fixing how a
mouse event was created in PhantomJS, PhantomJS now gets identical
results to Firefox.
@aashish24
Copy link
Member

@jbeezley could you review it?

At some point travis switched nodejs projects from usign an install step
of `npm install` to `npm ci`.  `npm ci` installs packages and runs their
install scripts without ensuring that their dependencies have been run
first.  For canvas-prebuilt, this tries to run node-pre-gyp before
node-pre-gyp is installed, which fails.  Switching back to explicitly
using `npm install` works better, and allows skipping explicitly fooling
with node-pre-gyp as part of the install.

Also, since `npm prune` may try to run `node-pre-gyp` as part of the
process, if that failed to install, the `prune` step will fail.  In this
case, clear the `node_modules` directory and install anew.
@manthey manthey merged commit d263035 into master May 30, 2018
@manthey manthey deleted the use-karma-spec-reporter branch May 30, 2018 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants