Giter Club home page Giter Club logo

Comments (4)

mklabs avatar mklabs commented on May 26, 2024

Depending on pr #63, it may become easier to test all this. Right now, there is no specific infrastructure to test out individual generators.

yeoman init mocha:generator was added:

Usage:
  yeoman init mocha:generator NAME app/file/to/test.js test/something.js ... [options]

Options:
  -h, --help      # Print generator's options and usage                           
                  # Default: false
      --internal  # Enable this flag when generating from yeoman-generators repo  
                  # Default: false
      --prefix    # Specify an alternate base directory                           
                  # Default: test/generators/

Description:
    This generator is here to help you scaffold a very basic mocha test suite
    for a given generator, using yeoman-generators helpers.

    Give it additional arguments as filepath to check, and the correspoding
    assertions will be generated for you.

Example:
    yeoman init mocha:generator Thing

    This will create:
        test/generators/test-thing.js

Additionally, the ./support/test script can be used to generate the appropriate command, depending on the generator name provided. https://github.com/mklabs/generators/blob/2886759ff5f4a86267da0775dc67d94633307f18/support/test

./support/test angular:all should generate the associated test suite: https://github.com/mklabs/generators/blob/2886759ff5f4a86267da0775dc67d94633307f18/test/generators/test-angular.js

from generator.

btford avatar btford commented on May 26, 2024

Very nice! I'd love something like this.

from generator.

addyosmani avatar addyosmani commented on May 26, 2024

@mklabs do you mind if I add your answer to the wiki? I don't think its
captured as well in our docs just yet.
On 23 Sep 2012 23:45, "Brian Ford" [email protected] wrote:

Very nice! I'd love something like this.


Reply to this email directly or view it on GitHubhttps://github.com/yeoman/generators/issues/58#issuecomment-8803902.

from generator.

mklabs avatar mklabs commented on May 26, 2024

@addyosmani not at all, please do. I have also been working at updating the docs / guide on generators, but not ready yet.

from generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.