gulp-jasmine-phantom icon indicating copy to clipboard operation
gulp-jasmine-phantom copied to clipboard

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

Open jonleung opened this issue 8 years ago • 1 comments

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

jonleung avatar May 20 '16 23:05 jonleung

+1

ericrini avatar Aug 28 '16 03:08 ericrini