• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kocal / dtws-client / 93 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v0.2.0
DEFAULT BRANCH: master
Ran 06 Sep 2016 11:18PM UTC
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Sep 2016 11:15PM UTC coverage: 48.198%. Remained the same
BROWSER='Chrome' USE_ES6=false

push

travis-ci

Kocal
Test/ES6: separate some tests for not ES6 comptability (READ COMMIT)

When I was writing tests for TornadoWebSocket.Module, I tested the inheritance of this class. 
But I encountered a problem of comptability: for the non ES5, I should use the old method "MyModule = function(TornadoWebSocket.Module){ inherits(MyModule, TornadoWebSocket.Module); function MyModule(prefix) { ... } 
}" with a Babel's method to inherit MyModule with TornadoWebSocket.Module.
It works very fine, but when I was testing MyModule during ES6 tests, I got an error message telling me that I should use the `new` keyword  (during TornadoWebSocket.Module instanciation).
So I tried to use the env' variable called `USE_ES6`, and use the old way when `USE_ES6` is off,  and use `class MyModule extends TornadoWebSocket.Module` when it is on.
But, it didn't works on Travis. When my tests ran on Travis during non ES6 tests (so « old » browsers), the keyword `class` was reserved, and tests failed.

So, I take a decision to implement a ES6 and non ES6 version of some tests (here for tws.Module) in separate files, and use the file `test-main.js` to dynamically load them. 
It works fine, but tests are duplicated, so I will try to find a better and cleaner way to resolve this problem.

107 of 222 relevant lines covered (48.2%)

3.41 hits per line

Source Files on job 93.1 (BROWSER='Chrome' USE_ES6=false)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 93
  • Travis Job 93.1
  • 4974c14f on github
  • Prev Job for BROWSER='Chrome' USE_ES6=false on develop (#92.1)
  • Next Job for BROWSER='Chrome' USE_ES6=false on develop (#94.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc