Converts assertion failure messages which spit out mutation contents into a human-readable diff.
10 lines
258 B
Bash
Executable File
10 lines
258 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Converts assertion failure text involving two mutations to a diff.
|
|
#
|
|
# Usage: mutation_diff <path-to-test-output-file>
|
|
#
|
|
|
|
colordiff -u <(sed -n '/expected/,/got:/p' $1 | head -n-1) \
|
|
<(sed -n '/got:/,/^$/p' $1) | less -R
|