dflynn15 / gulp-jasmine-phantom

Gulp plugin to run Jasmine tests with Phantom or mininodejasmine2.
27 stars 30 forks source link

When there are some kind of errors in the spec file, it will say "no specs found" #67

Open jonleung opened 8 years ago

jonleung commented 8 years ago

Given this gulpfile.js:

...
gulp.task('tests', function() {
    return gulp.src('specs/example.js')
        .pipe(jasmine({
            integration: true
        }));
});
...

The below specs/example.js, with the weird characters at the bottom, will give me an output of no specs found

// specs/example.js

describe("truth", function() {
    it("is truth", function() {
        expect(true).toBe(true);
    });
});

*$|~ Random ass stuff

The below specs/example.js, with the word characters at the bottom commented out, will run the tests are normal:

// specs/example.js

describe("truth", function() {
    it("is truth", function() {
        expect(true).toBe(true);
    });
});

// *$|~ Random ass stuff

Note

This ONLY happens when integration: true, otherwise it gives me proper error messages

ericrini commented 8 years ago

+1