ol list tests

Display assets test cases data

The ol list tests command lists all test cases created for a module or a specified asset. In addition, the test list displays the test success status and date for each test case. 

 Asset Name         Test-Case          Status         Last Tested                     
===================================================================================
 func_echo_my_int   case-1             Success        2021-05-12 09:26:27             
 func_echo_my_int   case-2             Not Tested     N/A  
 func_acc_by_id     case-1             Failure        2021-05-12 09:30:36             
 func_ecc_bu_id     case-2             Success        2021-05-12 09:38:58  

Rules

  • Login to the OL Hub.
  • Execute the ol list tests command from the module root folder.

Syntax

ol list tests ASSET_NAME [OPTIONS]

Arguments

ASSET_NAME

Set the asset whose test information you want to display.

Options

--filter, -f

The regular expression to filter the list by result column

Examples

Listing all tests in the module

[module_name]> ol list tests
[module_name]$ ol list tests

Listing tests of a specified asset

[module_name]> ol list tests func_echo_my_int
[module_name]$ ol list tests func_echo_my_int