Skip to content

Commit

Permalink
add static-text mode integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Sep 2, 2024
1 parent f777508 commit 965e60f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ generate_test_output="swift $TESTS_DIR/test_data_producer.swift $test_data_produ
output=$($generate_test_output | "$executable_path" --test-mode)
assert_snapshot "default" "$output"

# Test static text mode

output=$($generate_test_output | "$executable_path" --test-mode --static-text "Static text")
assert_snapshot "static_text" "$output"

# Test default mode with save original log

output=$($generate_test_output | "$executable_path" --test-mode --original-log-path /tmp/progressline_test_original_log.txt)
Expand Down
2 changes: 2 additions & 0 deletions Tests/snapshots/static_text.snapshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<activity> <duration> ❯ Static text
✓ <duration> ❯ Static text

0 comments on commit 965e60f

Please sign in to comment.