After completing Installation steps and Authentication steps, the API setup can be tested using the Unit Tests that come along with this API.
Before running the tests make sure you have the following:
- A file named as
credentials.json
on path with valid Google Cloud Service Account credentials - Installed MATLAB Interface for Google Cloud Storage
- A Google Cloud Project
- Enabled BigQuery and Cloud Storage APIs on Google cloud console for the Google Cloud Project
- Permissions and ROLES for read/write/list/delete
Use the following MATLAB commands to run the unit tests:
cd('mathworks-gcp-support/matlab-google-bigquery/Software/MATLAB')
startup
cd('test\unit\');runtests()
ans =
1×14 TestResult array with properties:
Name
Passed
Failed
Incomplete
Duration
Details
Totals:
14 Passed, 0 Failed, 0 Incomplete.
74.7701 seconds testing time.
The package is now ready for use.