Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with gulp-jasmine-browser #162

Open
CookieOfFortune opened this issue Feb 21, 2017 · 1 comment
Open

Incompatible with gulp-jasmine-browser #162

CookieOfFortune opened this issue Feb 21, 2017 · 1 comment

Comments

@CookieOfFortune
Copy link

When trying to use gulp-jasmine-browser, any failures triggers (with it appears to be all reporters) this error:

TypeError: Cannot read property '_failures' of undefined
at self.specDone (...node_modules\jasmine-reporters\src\nunit_reporter.js:155:28)
at ...node_modules\jasmine-json-stream-reporter\to-reporter.js:55:48
at Array.forEach (native)
at ...node_modules\jasmine-json-stream-reporter\to-reporter.js:54:17
at Array.find (native)
at DestroyableTransform._transform (...node_modules\jasmine-json-stream-reporter\to-reporter.js:50:25)
at DestroyableTransform.Transform._read (...node_modules\readable-stream\lib_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (...node_modules\readable-stream\lib_stream_transform.js:147:83)
at doWrite (...node_modules\readable-stream\lib_stream_writable.js:347:64)
at writeOrBuffer (...node_modules\readable-stream\lib_stream_writable.js:336:5)

Digging a little deeper, it appears the internal suite variable is never available. Not sure if there's an easy work around for this or if I'm doing anything wrong.

gulpfile.js:

const` gulp = require('gulp');
const jasmineBrowser = require('gulp-jasmine-browser');
const reporters = require('jasmine-reporters');

gulp.task('test', function () {
    return gulp.src(['scripts/lib/*.js', 'scripts/dist/test.bundle.js'])
        .pipe(jasmineBrowser.specRunner({ console: true }))
        .pipe(jasmineBrowser.headless({
            reporter: [
                new reporters.NUnitXmlReporter({
                    savePath: '.',
                    consolidateAll: false
                })
            ]
       }));
});

node v5.4.1, npm v3.3.4, gulp 3.9.1, gulp-jasmine-browser 1.7.1, jasmine-reporters 2.2.0

@putermancer
Copy link
Collaborator

Were you ever able to find a solution to this issue?

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

No branches or pull requests

2 participants