grpc-node/test/gulpfile.js
Kelvin Jin 6e569b76f1 Revert 2c625fe^..b192adf
Revert "use client's user agent; small changes in test gulpfile; add TODO"

This reverts commit 2c625feb9fd12c4c01602483f199e50b5eac5a90.

Revert "use merged gRPC object in api tests"

This reverts commit 9d9404615ec870dfbfe15055148070ccd700dc5f.

Revert "add packageJson to any-grpc"

This reverts commit 6a6b4eb56c9c10432d2664d6db12fc1348fc6e58.

Revert "change grpc refs in math api test"

This reverts commit 689d4d0c619b69fca0fb7af734f2741c8c4bc788.

Revert "test: add requiring fixtures to specify implementation to test"

This reverts commit b192adf2a12653744520aea625c7c87fbb493d4c.
2018-02-28 14:42:54 -08:00

41 lines
1.3 KiB
JavaScript

/*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
const _gulp = require('gulp');
const help = require('gulp-help');
const mocha = require('gulp-mocha');
const execa = require('execa');
const path = require('path');
const del = require('del');
const linkSync = require('../util').linkSync;
// gulp-help monkeypatches tasks to have an additional description parameter
const gulp = help(_gulp);
const testDir = __dirname;
const apiTestDir = path.resolve(testDir, 'api');
gulp.task('install', 'Install test dependencies', () => {
return execa('npm', ['install'], {cwd: testDir, stdio: 'inherit'});
});
gulp.task('clean.all', 'Delete all files created by tasks', () => {});
gulp.task('test', 'Run API-level tests', () => {
return gulp.src(`${apiTestDir}/*.js`).pipe(mocha({reporter: 'mocha-jenkins-reporter'}));
});