Skip to content

Commit 1576814

Browse files
Merge pull request #751 from watson-developer-cloud/skip-long-integration-tests
test: add the `@slow` tag to integration tests taking longer than 3 s…
2 parents c89b7cb + d1ff8fd commit 1576814

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/integration/test.discovery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ describe('discovery_integration', function() {
229229
});
230230
});
231231

232-
describe('credentials tests', function() {
232+
describe('credentials tests @slow', function() {
233233
let credentialId;
234234
const sourceType = 'sharepoint';
235235

test/integration/test.speech_to_text.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('speech_to_text_integration', function() {
3535
speech_to_text_rc = new watson.SpeechToTextV1(auth.speech_to_text_rc);
3636
});
3737

38-
it('recognize() (RC)', function(done) {
38+
it('recognize() (RC) @slow', function(done) {
3939
const params = {
4040
audio: fs.createReadStream(path.join(__dirname, '../resources/weather.ogg')),
4141
content_type: 'audio/ogg; codec=opus',
@@ -188,7 +188,7 @@ describe('speech_to_text_integration', function() {
188188
});
189189

190190
describe('createRecognizeStream() (RC)', () => {
191-
it('transcribes audio over a websocket', function(done) {
191+
it('transcribes audio over a websocket @slow', function(done) {
192192
const recognizeStream = speech_to_text_rc.createRecognizeStream();
193193
recognizeStream.setEncoding('utf8');
194194
fs
@@ -209,7 +209,7 @@ describe('speech_to_text_integration', function() {
209209
});
210210

211211
describe('createRecognizeStream()', () => {
212-
it('transcribes audio over a websocket', function(done) {
212+
it('transcribes audio over a websocket @slow', function(done) {
213213
const recognizeStream = speech_to_text.createRecognizeStream();
214214
recognizeStream.setEncoding('utf8');
215215
fs
@@ -372,7 +372,7 @@ describe('speech_to_text_integration', function() {
372372
);
373373

374374
it(
375-
'addCorpus() - string, overwrite',
375+
'addCorpus() - string, overwrite @slow',
376376
waitUntilReady(function(done) {
377377
speech_to_text.addCorpus(
378378
{
@@ -393,7 +393,7 @@ describe('speech_to_text_integration', function() {
393393
});
394394

395395
it(
396-
'addWords()',
396+
'addWords() @slow',
397397
waitUntilReady(function(done) {
398398
speech_to_text.addWords(
399399
{
@@ -417,7 +417,7 @@ describe('speech_to_text_integration', function() {
417417
);
418418

419419
it(
420-
'addWord()',
420+
'addWord() @slow',
421421
waitUntilReady(function(done) {
422422
speech_to_text.addWord(
423423
{
@@ -486,7 +486,7 @@ describe('speech_to_text_integration', function() {
486486
);
487487

488488
it(
489-
'deleteAudio()',
489+
'deleteAudio() @slow',
490490
waitUntilReady(function(done) {
491491
speech_to_text.deleteAudio(
492492
{
@@ -516,7 +516,7 @@ describe('speech_to_text_integration', function() {
516516
);
517517

518518
it(
519-
'recognize() - with customization',
519+
'recognize() - with customization @slow',
520520
waitUntilReady(function(done) {
521521
const params = {
522522
audio: fs.createReadStream(path.join(__dirname, '../resources/weather.ogg')),
@@ -587,7 +587,7 @@ describe('speech_to_text_integration', function() {
587587
});
588588
});
589589

590-
it('getRecognitionJobs()', function(done) {
590+
it('getRecognitionJobs() @slow', function(done) {
591591
speech_to_text.getRecognitionJobs(done);
592592
});
593593

0 commit comments

Comments
 (0)