Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Callback after completion of the tests #3

Open
vergissberlin opened this issue Jun 18, 2014 · 4 comments
Open

Callback after completion of the tests #3

vergissberlin opened this issue Jun 18, 2014 · 4 comments

Comments

@vergissberlin
Copy link

To make the tests run on travis CI, I run a web server. To shut down the server again, I need a message when the test was terminated.

Do you have any idea?

This was my one:

var gulp = require('gulp'),
    connect = require('gulp-connect'),
    dalek = require('gulp-dalek');

gulp.task('connect', function () {
  return connect.server({
    root: 'www',
    port: 1980
  });
});

gulp.task('test', ['connect'], function () {
  gulp.src(['tests/integration/localTest.js'])
      .pipe(dalek({
        browser: ['phantomjs'],
        reporter: ['console']
      })).on('endStream', function() {
        console.log('This is the end');
        connect.serverClose();
      });
});
gulp.task('default', ['connect', 'test']);

Thank u again

@davelandry
Copy link

@vergissberlin, were you able to find a solution for this problem?

@vergissberlin
Copy link
Author

Hi davelandry,

You can see it here:
https://travis-ci.org/vergissberlin/dalekjs-travisci

@davelandry
Copy link

Looking at your code, it seems that the tests are not failing when they should be, is that correct?

@vergissberlin
Copy link
Author

That's correct. It seams to be a bug from dalek-cli
dalekjs/dalek-cli#12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants