diff --git a/app/tests/room.unit.spec.js b/app/tests/room.unit.spec.js index 580434e..bccd9fd 100644 --- a/app/tests/room.unit.spec.js +++ b/app/tests/room.unit.spec.js @@ -2,4 +2,7 @@ describe('entity tests', function(){ it('create user', function(done){ done(); }) + it('should ', (done) => { + done() + }); }) diff --git a/app/tests/test.spec.js b/app/tests/test.spec.js new file mode 100644 index 0000000..9fde97e --- /dev/null +++ b/app/tests/test.spec.js @@ -0,0 +1,5 @@ +describe('test', function(){ + it('test ', (done) => { + done() + }); +}) diff --git a/coverage/index.html b/coverage/index.html new file mode 100644 index 0000000..3b4c6b2 --- /dev/null +++ b/coverage/index.html @@ -0,0 +1,10 @@ + + +
+ +Report
+ + \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 8c9a1d6..ef52e12 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -16,7 +16,7 @@ gulp.task('test', function () { console.log('test task') return gulp.src(['app/tests/*.js']) // .pipe(debug({title: 'unicorn:'})) - .pipe(mocha({ timeout:10000, reporter: 'mochawesome' })) // mocha-allure-reporter , mochawesome + .pipe(mocha({ timeout:10000, reporter: 'mocha-allure-reporter' })) // mocha-allure-reporter , mochawesome // Creating the reports after tests ran // .pipe(istanbul.writeReports()) // Enforce a coverage of at least 90% diff --git a/package.json b/package.json index 73af933..ff367b3 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "node-xmpp-server": "2.1.0", "node_hash": "^0.2.0", "nunjucks": "^1.3.4", + "nyc": "^13.1.0", "on-finished": "^2.3.0", "passport": "0.2.2", "passport-http": "0.2.2",