Wednesday, June 11, 2014

Build and test with exceptions

Everything in the system should be built and tested by default.
Sometimes there are good reasons to turn off a build or a test step. The danger is that something gets turned off and does not get turned back on.
So all exceptions to the system’s normal operation should be in a single location. Let’s call it exceptions.cson. The file might look something like this:
gulp:
    lint:
        exceptions: ["glob"...."glob"]
That means that every build and test step has to be guarded. For gulp we can add optional !globs to the gulp.src statement.

No comments:

Post a Comment