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

ssoloff / hazelslack-server-core / 10 / 1
18%
develop: 18%

Build:
DEFAULT BRANCH: develop
Ran 10 Feb 2017 04:36AM UTC
Files 1
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

10 Feb 2017 04:28AM UTC coverage: 100.0%. Remained the same
10.1

push

travis-ci

ssoloff
Restore test task as a named task rather than as a named function

After some experimentation, it seems that invoking gulp.series() or
gulp.parallel() within a function is probably an anti-pattern because
Gulp can't build a complete task map without actually executing these
tasks.  For example, the "gulp --tasks" command will not show any
subtasks for those tasks in which gulp.series() or gulp.parallel() are
not invoked when the Gulpfile is loaded.

I chose not to revert to using a variable to store the test task because
it does not show the "test" task when it is a subtask of another task
(e.g. the "default" task).  The reason why gulp.task() seems to work as
desired is because it actually creates a wrapper function around the
task function.  This is what we tried to do with the previous approach,
but the Undertaker library (which manages the Gulp tasks) adds
additional metadata to this wrapper function which makes it work as
desired.

Hopefully before Gulp 4 is released, there will be a way to define a
composite task without using gulp.task() but that behaves just as if it
were defined using gulp.task().

2 of 2 relevant lines covered (100.0%)

1.5 hits per line

Source Files on job 10.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10
  • Travis Job 10.1
  • 45196839 on github
  • Prev Job for on develop (#9.1)
  • Next Job for on develop (#11.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