Note: This tool is a work-in-progress, and may not work for all ML API nodejs repos.
Currently, node directory has test and Google video intelligence sample which fails if it reaches quotas limitation to produce the flakiness.
You will need to set up the local development environment by
[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
gcloud auth login
and gcloud config set project [YOUR PROJECT ID]
.
Go to samples directory
cd samples/
Install node dependencies
npm i
-
make bash script file executable
chmod +x flaky_tester_node.sh
-
execute the script in context to make available for usage
source flaky_tester_node.sh
-
call bash function with flaky_node_tester node_test.js
-
Node test module name (required)
source flaky_report_tool.sh "analyzing faces in video"