From 79651007bb94d1a6fb31382efdc9328b7468e95c Mon Sep 17 00:00:00 2001 From: Diego F Date: Wed, 11 Jul 2018 10:52:46 -0300 Subject: [PATCH] Agrego la posibilidad de correr "only" fixtures --- test/test.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 83f2ad7..8909d35 100644 --- a/test/test.js +++ b/test/test.js @@ -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={}; @@ -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); + } } }); });