Repository: polygene-java Updated Branches: refs/heads/develop 833bc8e8a -> c201ff52a
:tools:generator do not repeat tests when TEST_ALL is set Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/c201ff52 Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/c201ff52 Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/c201ff52 Branch: refs/heads/develop Commit: c201ff52a8eadfca6532a6265ceda731f2e672d9 Parents: 833bc8e Author: Paul Merlin <[email protected]> Authored: Mon Jun 5 21:00:42 2017 +0200 Committer: Paul Merlin <[email protected]> Committed: Mon Jun 5 21:00:42 2017 +0200 ---------------------------------------------------------------------- tools/generator-polygene/test/generator_test.js | 55 ++++++++++---------- 1 file changed, 28 insertions(+), 27 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/polygene-java/blob/c201ff52/tools/generator-polygene/test/generator_test.js ---------------------------------------------------------------------- diff --git a/tools/generator-polygene/test/generator_test.js b/tools/generator-polygene/test/generator_test.js index b151e98..62b9347 100644 --- a/tools/generator-polygene/test/generator_test.js +++ b/tools/generator-polygene/test/generator_test.js @@ -23,9 +23,6 @@ var shell = require('shelljs'); //See http://yeoman.io/authoring/testing.html -// test with all defaults first. -test(); - var appTypes = [ "Rest API", 'Command Line' @@ -80,32 +77,11 @@ var featuresset = [ ['jmx', 'mixin scripting', 'scripting'] ]; -appTypes.forEach(function (appType) { - test(appType, "Memory", "Rdf", "Memcache", "Codahale", "[]"); -}); - -entityStores.forEach(function (entityStore) { - test("Rest API", entityStore, "Rdf", "Memcache", "Codahale", "[]"); -}); - -indexings.forEach(function (indexing) { - test("Rest API", "Memory", indexing, "Memcache", "Codahale", "[]"); -}); - -cachings.forEach(function (caching) { - test("Rest API", "Memory", "Rdf", caching, "Codahale", "[]"); -}); - -metricses.forEach(function (metrics) { - test("Rest API", "Memory", "Rdf", "Memcache", metrics, "[]"); -}); - -featuresset.forEach(function (feature) { - test("Rest API", "Memory", "Rdf", "Memcache", "Codahale", feature); -}); +// test with all defaults first. +test(); -// All Tests !!!! if(process.env.TEST_ALL === 'yes') { + // All Tests !!!! appTypes.forEach(function (appType) { entityStores.forEach(function (entitystore) { indexings.forEach(function (indexing) { @@ -119,6 +95,31 @@ if(process.env.TEST_ALL === 'yes') { }); }); }); +} else { + // Subset + appTypes.forEach(function (appType) { + test(appType, "Memory", "Rdf", "Memcache", "Codahale", "[]"); + }); + + entityStores.forEach(function (entityStore) { + test("Rest API", entityStore, "Rdf", "Memcache", "Codahale", "[]"); + }); + + indexings.forEach(function (indexing) { + test("Rest API", "Memory", indexing, "Memcache", "Codahale", "[]"); + }); + + cachings.forEach(function (caching) { + test("Rest API", "Memory", "Rdf", caching, "Codahale", "[]"); + }); + + metricses.forEach(function (metrics) { + test("Rest API", "Memory", "Rdf", "Memcache", metrics, "[]"); + }); + + featuresset.forEach(function (feature) { + test("Rest API", "Memory", "Rdf", "Memcache", "Codahale", feature); + }); } function test(appType, entityStore, indexing, caching, metrics, features) {
