我想编写一个单元测试来检查开发环境中的值是否与 Looker 中的生产值匹配。目前我可以根据静态硬编码值检查值,但无法动态检查
test: 5_test_impacted_engineers_with_new_eng_levels{
explore_source: fellow{
column:impacted_engineers{
field:fellow.count
}
filters: {
field: fellow.eng_level
value: "Eng1, Eng2, Eng3, Eng4, Eng5, Eng6, Eng7"
}
filters: {
field:fellow_promotion_dates.impacted_engineers
value: "yes"
}
}
##impacted engineers should not have had eng levels, yes?
assert: expected_impacted_new_levels {
expression: ${fellow.count}=0;;
}
}