When using the CLion reporter with a project open in the IDE, received and approved files are opened as regular tabs, and an empty diff window is opened for each failed test.
I experience this issue on macOS. I don't know if Windows/Linux are affected.
It seems that the nosplash argument when invoking CLion is the culprit here. As a workaround, you can skip the argument in CLion's startup script (/Users/[username]/Library/Application Support/JetBrains/Toolbox/scripts/clion) by adding this to the start of the for-loop:
if [[ "$o" = "nosplash" ]]; then
continue
fi
With the workaround applied, ApprovalTests diffs correctly open in the CLion diff viewer.
When using the CLion reporter with a project open in the IDE, received and approved files are opened as regular tabs, and an empty diff window is opened for each failed test.
I experience this issue on macOS. I don't know if Windows/Linux are affected.
It seems that the
nosplash
argument when invoking CLion is the culprit here. As a workaround, you can skip the argument in CLion's startup script (/Users/[username]/Library/Application Support/JetBrains/Toolbox/scripts/clion
) by adding this to the start of the for-loop:With the workaround applied, ApprovalTests diffs correctly open in the CLion diff viewer.