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

strongloop / loopback-datasource-juggler / 5348
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix-deprecated-pkgs
DEFAULT BRANCH: master
Ran 18 Jul 2019 02:53PM UTC
Jobs 3
Files 36
Run time 6min
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

pending completion
5348

push

travis-ci

bajtos
feat: add DataSource.reset() API

When writing tests, for performance reasons we often want to reuse
the same data-source instance for many tests suites. At the same time,
we want to keep such test suites independent and allow them to reuse
the same model name for different model classes.

Juggler does support redefinition of a model with the same name.

This change is adding a new API called `dataSource.reset()` that allows
tests to remove all old models before creating new ones (typically
from a `before` hook).

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>

4490 of 5608 branches covered (80.06%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

7087 of 8081 relevant lines covered (87.7%)

2773.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5348.1 18 Jul 2019 03:00PM UTC 0
84.57
Travis Job 5348.1
2 5348.2 18 Jul 2019 02:56PM UTC 0
84.57
Travis Job 5348.2
3 5348.3 18 Jul 2019 02:53PM UTC 0
84.57
Travis Job 5348.3
Source Files on build 5348
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5348
  • 1f8f1001 on github
  • Prev Build on feat/reset-datasource (#5346)
  • Next Build on feat/reset-datasource (#5350)
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