terraform/command/e2etest
Martin Atkins e865faf318 command: Better visual hierarchy for diagnostics
I frequently see people attempting to ask questions about Terraform's
error and warning messages but either only copying part of the message or
accidentally copying a surrounding paragraph that isn't part of the
message.

While I'm sure some of these are just "careless" mistakes, I've also
noticed that this has sometimes overlapped with someone asking a question
whose answer is written directly in the part of the message they didn't
include when copying, and so I have a theory that our current output
doesn't create a good enough visual hierarchy for sighted users to
understand where the diagnostic messages start and end when we show them
in close proximity to other content, or to other diagnostic messages.
As a result, some folks fail to notice the relevant message that might've
answered their question.

I tried a few different experiments for different approaches here, such
as adding more horizontal rules to the output and coloring the detail
text differently, but the approach that felt like the nicest compromise
to me was what's implemented here, which is to add a vertical line
along the left edge of each diagnostic message, colored to match with the
typical color we use for each diagnostic severity. This means that the
diagnostics end up slightly indented from what's around them, and the
vertical line seems to help subtly signal how we intended the content
to be grouped together.
2021-01-14 09:50:22 -08:00
..
testdata Add e2e test for provisioner plugin 2020-12-02 12:45:00 -05:00
.gitignore command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
automation_test.go cleanup error handling and some for loops 2020-12-02 13:59:19 -05:00
doc.go command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
init_test.go command: Better visual hierarchy for diagnostics 2021-01-14 09:50:22 -08:00
main_test.go [WIP] Re-enable the end-to-end tests (#20044) 2019-04-29 13:03:24 -04:00
make-archive.sh Standardise directory name for test data 2019-06-30 10:16:15 +02:00
primary_test.go backend/local: Use terminal properties to tweak the plan output 2021-01-13 15:37:04 -08:00
provider_dev_test.go remove old test provider from e2e tests 2020-12-02 12:45:00 -05:00
providers_mirror_test.go e2etest staticcheck 2020-12-02 13:59:19 -05:00
provisioner_plugin_test.go Add e2e test for provisioner plugin 2020-12-02 12:45:00 -05:00
remote_state_test.go e2e test for remote state read 2020-06-24 14:09:59 -04:00
unmanaged_test.go cleanup error handling and some for loops 2020-12-02 13:59:19 -05:00
version_test.go remove old version call site 2020-12-02 12:45:00 -05:00