jasmine doesn't seem to run
Closed this issue · 1 comments
xetra11 commented
Hey guys,
I followed the instructions to setup gulp-jasmine but it kind of doesn't work for me.
here's my gulpfile.js
const gulp = require('gulp');
const jasmine = require('gulp-jasmine');
const reporters = require('jasmine-reporters');
const jasmineOptions = {
'verbose' : true,
'includeStackTrace' : true,
'reporter' : new reporters.JUnitXmlReporter()
}
gulp.task('default', () => {});
gulp.task('test', () => {
gulp.src('tests/test.js')
.pipe(jasmine(jasmineOptions))
.on('jasmineDone', () => {
console.log("jasmine done...");
})
});
And this is my testfile test.js
:
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
});
when I run gulp test
I receive following output:
[07:32:41] Using gulpfile ~/Workspace/Development/JavaScript/CM-Divisions-Game/cm-divisions-game/gulpfile.js
[07:32:41] Starting 'test'...
[07:32:41] Finished 'test' after 52 ms
jasmine done...
even tho the jasmine had failed on some case - I wonder why the verbose option or stacktrace did not gave me any informations.
xetra11 commented
Sorry I did not realized that the reporter exported to a file ....