Skip to content

Commit

Permalink
Agrego la posibilidad de correr "only" fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego F committed Jul 11, 2018
1 parent f804104 commit 7965100
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe("fixtures", function(){
if(fixture.skip) {
it.skip("fixture: "+fixture.name);
} else {
it("fixture: "+fixture.name, function(done){
const fun = function(done){
var defaultOpts = {inputEncoding:'UTF8', outputEncoding:'UTF8', detectBooleans:true};
var param={tableName:fixture.name};
var expected={};
Expand Down Expand Up @@ -141,7 +141,12 @@ describe("fixtures", function(){
//expect(generated.stats.endTime).to.be.greaterThan(generated.stats.startTime);
}
}).then(done,done);
});
};
if(fixture.only) {
it.only("fixture: "+fixture.name, fun);
} else {
it("fixture: "+fixture.name, fun);
}
}
});
});
Expand Down

0 comments on commit 7965100

Please sign in to comment.