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

ssoloff / hazelslack-server-core / 10
18%

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

pending completion
10

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

Jobs
ID Job ID Ran Files Coverage
1 10.1 10 Feb 2017 04:36AM UTC 0
100.0
Travis Job 10.1
Source Files on build 10
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #10
  • 45196839 on github
  • Prev Build on develop (#9)
  • Next Build on develop (#11)
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

© 2025 Coveralls, Inc