How to use the yeoman-generator.test.createDummyGenerator function in yeoman-generator

To help you get started, we’ve selected a few yeoman-generator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abiee / generator-backbone-amd / test / tests.js View on Github external
beforeEach(function (done) {
    var deps = [
      '../../app',
      '../../model',
      '../../collection',
      '../../view',
      '../../router', [
        helpers.createDummyGenerator(),
        'buster:app'
      ]
    ];
    helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) {
        return done(err);
      }
      backbone = helpers.createGenerator('backbone-amd:app', deps);
      done();
    });
  });
github Dica-Developer / generator-node-webkit / test / test-app.js View on Github external
describe('node-webkit:app', function () {
  var defaultOptions = {
      'appname': 'TestApp',
      'description': 'Test Description',
      'username': 'Test User',
      'examples': false
    },
    testDirectoryPath = path.join(__dirname, 'app.tmp'),
    testDirectory = helpers.setUpTestDirectory(testDirectoryPath),
    deps = ['../../generators/app', [helpers.createDummyGenerator(), 'node-webkit:download']];

  beforeEach(function (done) {
    testDirectory(function () {
      fs.emptyDirSync(testDirectoryPath);
      fs.writeJsonSync(testDirectoryPath + '/.yo-rc.json', {'generator-node-webkit': {}});
      fs.symlinkSync(__dirname + '/fixtures/node_modules', testDirectoryPath + '/node_modules');
      done();
    });
  });

  afterEach(function (done) {
    fs.remove(testDirectoryPath, done);
  });

  describe('Running app', function () {
github hung-phan / generator-angular-with-require / test / test-creation.js View on Github external
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('angular-with-require:app', [
                '../../app', [
                  helpers.createDummyGenerator(),
                  'mocha:app'
                ]
            ]);
            done();
        }.bind(this));
    });
github GrayBullet / generator-graybullet-cordova / test / lib / webappRunner.js View on Github external
run: function (callback) {
      var generator = helpers.run('generator-webapp')
        .inDir(this.directory)
        .withOptions(options)
        .withGenerators([[helpers.createDummyGenerator(), testGeneratorName]])
        .withPrompt({
          features: ['includeBootstrap']
        })
        .on('end', callback);
      generator.options.skipInstall = true;
    },
github jgoux / generator-angulpify / test / test-creation.js View on Github external
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) {
        return done(err);
      }

      this.angulpify = helpers.createGenerator('angulpify:app', [
        '../../app', [
          helpers.createDummyGenerator(),
          'mocha:app'
        ]
      ]);
      this.angulpify.options['skip-install'] = true;

      done();
    }.bind(this));
  });
github hung-phan / generator-rails-angular-require / test / test-creation.js View on Github external
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) {
        return done(err);
      }

      this.app = helpers.createGenerator('rails-angular-require:app', [
        '../../app', [
          helpers.createDummyGenerator(),
          'mocha:app'
        ]
      ]);
      done();
    }.bind(this));
  });
github gustavohenrique / gulp-angular-semantic-ui / test / app_slug.js View on Github external
helpers.testDirectory(path.join(__dirname, 'slug'), function(err) {
            if (err) {
                return done(err);
            }

            this.webapp = helpers.createGenerator('gulp-angular-semantic-ui:app', [
                '../../app', [
                    helpers.createDummyGenerator(),
                    'mocha:app'
                ]
            ]);
            this.webapp.options['skip-install'] = true;

            done();
        }.bind(this));
    });
github gustavohenrique / gulp-angular-semantic-ui / test / gulp_file.js View on Github external
helpers.testDirectory(path.join(__dirname, 'gulp-file'), function(err) {
            if (err) {
                return done(err);
            }

            this.webapp = helpers.createGenerator('gulp-angular-semantic-ui:app', [
                '../../app', [
                    helpers.createDummyGenerator(),
                    'mocha:app'
                ]
            ]);
            this.webapp.options['skip-install'] = true;

            done();
        }.bind(this));
    });
github wangshijun / generator-angular-cordova / test / test-file-creation.js View on Github external
beforeEach(function (done) {
    var deps = [
      '../../app',
      '../../common',
      '../../controller',
      '../../main', [
        helpers.createDummyGenerator(),
        'karma:app'
      ]
    ];
    helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) {
        done(err);
      }
      angular = helpers.createGenerator('angular-cordova:app', deps);
      angular.options['skip-install'] = true;
      done();
    });
  });