Skip to content

Commit

Permalink
Travis: fix failing tests + update dependencies (#335)
Browse files Browse the repository at this point in the history
* Make unify script recursive + clean up dependency conflicts

* Restore travis.yml

* Delete outdated text detection sample that duplicates detect.js

* Fix failing KMS + vision tests by updating dependencies

* Fix video tests using a bad cwd

* Upgrade monitoring dependency + skip flaky monitoring tests

* Fix DLP tests having wrong cwd

* Fix failing vision test

* Fix datastore tests

* Update broken dependency

* Update possibly broken compute engine dependency

* Fix typos

* Disable Node 4 testing

* Revert deletion of outdated sample - @gguuss says we still use this.

This reverts commit b7259c8.

* Update dependency
  • Loading branch information
Ace Nassri authored Apr 5, 2017
1 parent 5e9c13f commit 6ff83b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions video-intelligence/system-test/analyze.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@
'use strict';

require(`../../system-test/_setup`);
const path = require(`path`);

const cmd = `node analyze.js`;
const cwd = path.join(__dirname, `..`);

// analyze_faces
test(`should analyze faces`, async (t) => {
const output = await runAsync(`${cmd} faces gs://nodejs-docs-samples/video/google_gmail.mp4`);
const output = await runAsync(`${cmd} faces gs://nodejs-docs-samples/video/google_gmail.mp4`, cwd);
t.regex(output, /Thumbnail size: \d+/);
});

// analyze_labels
test(`should analyze labels`, async (t) => {
const output = await runAsync(`${cmd} labels gs://nodejs-docs-samples/video/cat.mp4`);
const output = await runAsync(`${cmd} labels gs://nodejs-docs-samples/video/cat.mp4`, cwd);
t.regex(output, /Label description: Whiskers/);
});

// analyze_shots
test(`should analyze shots`, async (t) => {
const output = await runAsync(`${cmd} shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4`);
const output = await runAsync(`${cmd} shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4`, cwd);
t.regex(output, /Scene 0:/);
});

0 comments on commit 6ff83b2

Please sign in to comment.