Converts unit tests to the style used by base-test-suite.
Install with npm:
$ npm install base-test-converter --save
This won't be published as a gulp plugin, since it's only going to be used until we get the tests converted in templates, assemble, assemble-core, generate, verb and few other projects.
var gulp = require('gulp');
var converter = require('base-test-converter');
var condense = require('gulp-condense');
gulp.task('fixtures', function() {
return gulp.src('test/fixtures/**')
.pipe(gulp.dest('converted/fixtures'));
});
gulp.task('support', function() {
return gulp.src('test/support/**')
.pipe(gulp.dest('converted/support'));
});
gulp.task('convert', ['fixtures', 'support'], function() {
return gulp.src('test/*.js')
.pipe(converter())
.pipe(condense())
.pipe(gulp.dest('converted'));
});
You might also be interested in these projects:
- base-test-runner: Test runner for base projects. | homepage
- base-test-suite: Test suite for base projects. | homepage
This document was generated by verb, please don't edit directly. Any changes to the readme must be made in .verb.md. See Building Docs.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install -g verb verb-readme-generator && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on June 01, 2016.