From 83fc9d2f0d573fec12b3ee16eea61db667e0fc38 Mon Sep 17 00:00:00 2001 From: Fabrice Reix Date: Thu, 18 Jan 2024 14:43:50 +0100 Subject: [PATCH] Add Test integ for hurlfmt help --- integration/hurlfmt/tests_ok/help.out.pattern | 19 +++++++++++++++++++ integration/hurlfmt/tests_ok/help.ps1 | 3 +++ integration/hurlfmt/tests_ok/help.sh | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 integration/hurlfmt/tests_ok/help.out.pattern create mode 100644 integration/hurlfmt/tests_ok/help.ps1 create mode 100755 integration/hurlfmt/tests_ok/help.sh diff --git a/integration/hurlfmt/tests_ok/help.out.pattern b/integration/hurlfmt/tests_ok/help.out.pattern new file mode 100644 index 000000000..6ddf6b097 --- /dev/null +++ b/integration/hurlfmt/tests_ok/help.out.pattern @@ -0,0 +1,19 @@ +Format Hurl files + +Usage: hurlfmt [OPTIONS] [FILES]... + +Arguments: + [FILES]... Sets the input file to use + +Options: + --check Run in 'check' mode + --color Colorize Output + --format Specify output format: hurl, json or html (DEPRECATED) [default: hurl] + --in-place Modify file in place + --in Specify input format: hurl or curl [default: hurl] + --no-color Do not colorize output + -o, --output Write to FILE instead of stdout + --out Specify output format: hurl, json or html [default: hurl] + --standalone Standalone HTML + -h, --help Print help + -V, --version Print version diff --git a/integration/hurlfmt/tests_ok/help.ps1 b/integration/hurlfmt/tests_ok/help.ps1 new file mode 100644 index 000000000..13f02311f --- /dev/null +++ b/integration/hurlfmt/tests_ok/help.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl --help diff --git a/integration/hurlfmt/tests_ok/help.sh b/integration/hurlfmt/tests_ok/help.sh new file mode 100755 index 000000000..08a47b8c6 --- /dev/null +++ b/integration/hurlfmt/tests_ok/help.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -Eeuo pipefail +# In CI, --help is wrapped on a 120 columns wide terminal. +hurlfmt --help