Version 4.0.25.14 (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
lock
object
Operations the current user is able to perform on this object
model_name
lock
string
Name of model containing this test.
test_name
lock
string
Name of this test.
assertions_count
lock
integer
Number of assertions in this test
assertions_failed
lock
integer
Number of assertions passed in this test
errors
ProjectError
[]
Expand ProjectError definition...
code
lock
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
lock
string
Severity: fatal, error, warning, info, success
kind
lock
string
Error classification: syntax, deprecation, model_configuration, etc
message
lock
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
lock
string
The field associated with this error
file_path
lock
string
Name of the file containing this error
line_number
lock
integer
Line number in the file of this error
model_id
lock
string
The model associated with this error
explore
lock
string
The explore associated with this error
help_url
lock
string
A link to Looker documentation about this error
params
lock
object
Error parameters
sanitized_message
lock
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
ProjectError
[]
Expand ProjectError definition...
code
lock
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
lock
string
Severity: fatal, error, warning, info, success
kind
lock
string
Error classification: syntax, deprecation, model_configuration, etc
message
lock
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
lock
string
The field associated with this error
file_path
lock
string
Name of the file containing this error
line_number
lock
integer
Line number in the file of this error
model_id
lock
string
The model associated with this error
explore
lock
string
The explore associated with this error
help_url
lock
string
A link to Looker documentation about this error
params
lock
object
Error parameters
sanitized_message
lock
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
lock
boolean
True if this test passsed without errors.
400: Bad Request
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
string
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link