Skip to content

Converts unit tests to the style used by base-test-suite.

License

Notifications You must be signed in to change notification settings

base-repos/base-test-converter

Repository files navigation

base-test-converter NPM version NPM downloads Build Status

Converts unit tests to the style used by base-test-suite.

Install

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.

Usage

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'));
});

Related projects

You might also be interested in these projects:

Contributing

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.

Building docs

Generate readme and API documentation with verb:

$ npm install -g verb verb-readme-generator && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on June 01, 2016.

About

Converts unit tests to the style used by base-test-suite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published