feat(tester): add integration-first journey execution
This commit is contained in:
@@ -13,6 +13,8 @@ import sys
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from journey import suite as case_suite, test_type
|
||||
|
||||
try:
|
||||
import yaml
|
||||
except ImportError: # pragma: no cover
|
||||
@@ -22,6 +24,8 @@ except ImportError: # pragma: no cover
|
||||
FIELDS = (
|
||||
"category",
|
||||
"id",
|
||||
"test_type",
|
||||
"suite",
|
||||
"client_suite",
|
||||
"platform",
|
||||
"maps_to",
|
||||
@@ -158,11 +162,16 @@ def export_cases_csv(root: Path, out: Path | None = None) -> Path:
|
||||
writer.writeheader()
|
||||
for case in cases:
|
||||
cid = str(case.get("id") or "")
|
||||
client_suite_value = case.get("client_suite") or (
|
||||
case.get("suite") if test_type(case) == "journey" else ""
|
||||
)
|
||||
writer.writerow(
|
||||
{
|
||||
"category": case.get("category") or "",
|
||||
"id": cid,
|
||||
"client_suite": case.get("client_suite") or case.get("suite") or "",
|
||||
"test_type": test_type(case),
|
||||
"suite": case_suite(case),
|
||||
"client_suite": client_suite_value or "",
|
||||
"platform": one_line(case.get("platform")),
|
||||
"maps_to": case.get("maps_to") or "",
|
||||
"title": case.get("title") or "",
|
||||
|
||||
Reference in New Issue
Block a user