we should be able to assign metrics from variables defined in tests. This could look as follows. We can have a property name vars which will look for key under the vars section of the test. If the key is found we will assign the value to the metric. In this example below we can perform an assertion equality.
buildspecs:
metric_variables:
executor: generic.local.bash
type: script
description: capture metrics from variables
vars:
FOO: BAR
run: echo $FOO
tags: tutorials
metrics:
foo:
type: str
vars: foo
status:
assert_eq:
- name: foo
ref: BAR
TODO:
we should be able to assign metrics from variables defined in tests. This could look as follows. We can have a property name
varswhich will look for key under thevarssection of the test. If the key is found we will assign the value to the metric. In this example below we can perform an assertion equality.TODO:
vars