Skip to content

Commit

Permalink
add test to check custom output table header labels
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKoren committed Oct 12, 2024
1 parent 2de1123 commit 20ced70
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ repo_root="$(pwd)"
echo "OK"
echo ""

echo "# Test case: custom labels"
"${converter}" \
-sample-column-name M \
-separator ' ' \
--sample-label S \
--metric-label M \
--value-label V \
"${integrations}/custom_in.csv" "./custom_out_labels.csv"
diff "${integrations}/custom_out_labels.csv" "./custom_out_labels.csv"
echo "OK"
echo ""

echo "# Test case: custom (sample by RE)"
"${converter}" -sample-column-search '^M$' -separator ' ' "${integrations}/custom_in.csv" "./custom_out.csv"
diff "${integrations}/custom_out.csv" "./custom_out.csv"
Expand Down
7 changes: 7 additions & 0 deletions table-converter/integrations/custom_out_labels.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
S M V
s1 M1 v1
s1 M2 v2
s2 M1 v4
s2 M2 v5
s3 M1 v7
s3 M2 v8

0 comments on commit 20ced70

Please sign in to comment.