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

strongloop / loopback-datasource-juggler / 5347 / 3
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix-deprecated-pkgs
DEFAULT BRANCH: master
Ran 18 Jul 2019 02:40PM UTC
Files 36
Run time 11s
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

18 Jul 2019 02:37PM UTC coverage: 84.572% (+0.004%) from 84.568%
5347.3

Pull #1759

travis-ci

web-flow
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>
Pull Request #1759: feat: add DataSource.reset() API

4490 of 5608 branches covered (80.06%)

Branch coverage included in aggregate %.

7087 of 8081 relevant lines covered (87.7%)

921.71 hits per line

Source Files on job 5347.3
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5174
  • Travis Job 5347.3
  • b308f0cc on github
  • Prev Job for on feat/reset-datasource (#5344.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