From 0a2eafa8ad8c27ba0533d88da296ba672fb5a66a Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Tue, 3 Sep 2019 11:05:32 -0500 Subject: [PATCH 1/3] Removed breaking "\r\n" instances from command. --- docs/commands/mftf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commands/mftf.md b/docs/commands/mftf.md index aea53c96f..15c3af7bd 100644 --- a/docs/commands/mftf.md +++ b/docs/commands/mftf.md @@ -173,7 +173,7 @@ Complex configuration to generate a few non-suite tests, a single test in a suit The command that encodes this complex configuration: ```bash -vendor/bin/mftf generate:tests --tests "{\r\n\"tests\":[\r\n\"general_test1\",\r\n\"general_test2\",\r\n\"general_test3\"\r\n],\r\n\"suites\":{\r\n\"sample\":[\r\n\"suite_test1\"\r\n],\r\n\"sample2\":null\r\n}\r\n}" +vendor/bin/mftf generate:tests --tests "{"tests\":["general_test1\","general_test2\","general_test3\"],"suites\":{"sample\":["suite_test1\"],"sample2\":null}}" ``` Note that the strings must be escaped and surrounded in quotes. From 3e6f1e021b732a892e929feeb95ed2c8dc31ae89 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Wed, 11 Sep 2019 10:24:06 -0500 Subject: [PATCH 2/3] Put back required backslashes --- docs/commands/mftf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commands/mftf.md b/docs/commands/mftf.md index 15c3af7bd..289341730 100644 --- a/docs/commands/mftf.md +++ b/docs/commands/mftf.md @@ -173,7 +173,7 @@ Complex configuration to generate a few non-suite tests, a single test in a suit The command that encodes this complex configuration: ```bash -vendor/bin/mftf generate:tests --tests "{"tests\":["general_test1\","general_test2\","general_test3\"],"suites\":{"sample\":["suite_test1\"],"sample2\":null}}" +vendor/bin/mftf generate:tests --tests "{\"tests\":[\"general_test1\",\"general_test2\",\"general_test3\"],\"suites\":{\"sample\":[\"suite_test1\"],\"sample2\":null}}" ``` Note that the strings must be escaped and surrounded in quotes. From 4d39d0a6cd668b631f99b52f7ccf4331ea57e58c Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Wed, 11 Sep 2019 15:37:24 -0500 Subject: [PATCH 3/3] Even better --- docs/commands/mftf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commands/mftf.md b/docs/commands/mftf.md index 289341730..f9a82704c 100644 --- a/docs/commands/mftf.md +++ b/docs/commands/mftf.md @@ -173,7 +173,7 @@ Complex configuration to generate a few non-suite tests, a single test in a suit The command that encodes this complex configuration: ```bash -vendor/bin/mftf generate:tests --tests "{\"tests\":[\"general_test1\",\"general_test2\",\"general_test3\"],\"suites\":{\"sample\":[\"suite_test1\"],\"sample2\":null}}" +vendor/bin/mftf generate:tests --tests '{"tests":["general_test1","general_test2","general_test3"],"suites":{"sample":["suite_test1"],"sample2":null}}' ``` Note that the strings must be escaped and surrounded in quotes.