Giter Club home page Giter Club logo

Comments (8)

yocontra avatar yocontra commented on May 30, 2024

cc @lazd

I also want make a gulp plugin compliance test suite that actually verifies that a plugin meets the guidelines (passing in streams, buffers, nulls, testing backpressure, etc.). In our search engine it would be cool to shitlist plugins that don't pass the test suite. The plugin guidelines are very strict but this makes testing for compliance extremely simple.

from gulp.

yocontra avatar yocontra commented on May 30, 2024

Also cc @hparra since he owns generator-gulp-plugin. We can build the compliance suite into that.

from gulp.

sindresorhus avatar sindresorhus commented on May 30, 2024

๐Ÿ‘ I'm all for that. Better to be overly strict at first than the opposite.

from gulp.

lazd avatar lazd commented on May 30, 2024

Added it to the plugin guidelines.

We should add a wiki page that covers testing strategies. There's already a short section on testing plugins that deal with streams, but we could do better.

from gulp.

sindresorhus avatar sindresorhus commented on May 30, 2024

@lazd awesome!

Totally unrelated, but I just published my first gulp plugin and pretty sure it follows all the best practises, but if you have a chance, would love if you could check it out, and let me know if anything could be improved.

from gulp.

yocontra avatar yocontra commented on May 30, 2024

@sindresorhus Looks good to me! One pattern I have used for validation plugins is to attach errors to the file object and pass it along. This lets people write their own reporters and stick them in after the validator. You can provide a .reporter() function on the plugin that returns a new reporter stream to exposes built-in reporters.

from gulp.

hparra avatar hparra commented on May 30, 2024

I'll be glad to merge test suites and commentary into generator.

Also a TODO: notify all pre-gulp3 plugin writers of these new guidelines. Many do not handle streams at all, etc.

from gulp.

yocontra avatar yocontra commented on May 30, 2024

Moving this to #68

from gulp.

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.