Run LookML Test

Version 4.0.24.18 (latest)

Run LookML Tests

Runs all tests in the project, optionally filtered by file, test, and/or model.

Request

GET /projects/{project_id}/lookml_tests/run
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
project_id
string
Project Id
query
HTTP Query
Expand HTTP Query definition...
file_id
string
File Name
test
string
Test Name
model
string
Model Name

Response

200: LookML Test Results

Datatype
Description
(array)
can
object
Operations the current user is able to perform on this object
model_name
string
Name of model containing this test.
test_name
string
Name of this test.
assertions_count
integer
Number of assertions in this test
assertions_failed
integer
Number of assertions passed in this test
errors
Expand ProjectError definition...
code
string
A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language
severity
string
Severity: fatal, error, warning, info, success
kind
string
Error classification: syntax, deprecation, model_configuration, etc
message
string
Error message which may contain information such as dashboard or model names that may be considered sensitive in some use cases. Avoid storing or sending this message outside of Looker
field_name
string
The field associated with this error
file_path
string
Name of the file containing this error
line_number
integer
Line number in the file of this error
model_id
string
The model associated with this error
explore
string
The explore associated with this error
help_url
string
A link to Looker documentation about this error
params
object
Error parameters
sanitized_message
string
A version of the error message that does not contain potentially sensitive information. Suitable for situations in which messages are stored or sent to consumers outside of Looker, such as external logs. Sanitized messages will display "(?)" where sensitive information would appear in the corresponding non-sanitized message
warnings
Expand ProjectError definition...
code
string
A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language
severity
string
Severity: fatal, error, warning, info, success
kind
string
Error classification: syntax, deprecation, model_configuration, etc
message
string
Error message which may contain information such as dashboard or model names that may be considered sensitive in some use cases. Avoid storing or sending this message outside of Looker
field_name
string
The field associated with this error
file_path
string
Name of the file containing this error
line_number
integer
Line number in the file of this error
model_id
string
The model associated with this error
explore
string
The explore associated with this error
help_url
string
A link to Looker documentation about this error
params
object
Error parameters
sanitized_message
string
A version of the error message that does not contain potentially sensitive information. Suitable for situations in which messages are stored or sent to consumers outside of Looker, such as external logs. Sanitized messages will display "(?)" where sensitive information would appear in the corresponding non-sanitized message
success
boolean
True if this test passsed without errors.

400: Bad Request

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

422: Validation Error

Datatype
Description
(object)
message
string
Error details
Expand ValidationErrorDetail definition...
field
string
Field with error
code
string
Error code
message
string
Error info message
documentation_url
string
Documentation link
documentation_url
string
Documentation link

429: Too Many Requests

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link