-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add diffs and simplify flows #1525
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not compared the removed code to its replacements in fine detail, but on the whole removing hacks is good progress.
tests/tests.wake
Outdated
makeExecPlan | ||
( | ||
"diff", | ||
"-u", | ||
"--color", | ||
actualFile.getPathName, | ||
expectFile.getPathName, | ||
) | ||
( | ||
expectFile, | ||
actualFile, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it would be cleaner to have the cmdline and the visible files as separate def
s inside this block? Definitely not a critical change, though.
The wake test system has had hacky support for
wake-unit
for quite some time. This lead to basically having two nearly but not quite identical test subsystems. In preparing to add the lsp tests to CI I realized it was closer towake-unit
than the other integration tests so I either needed to further ingrain the hack or fully remove the hack.I went ahead and removed the hack but this does require that more binaries (including test ones) be bootstrapped. This will somewhat increase the default install size but that can be worked around if it ever becomes a burden.
This PR also resolves a long standing TODO to print out a diff of the expected vs actual stdout/stderr when a failure occurs which will making resolving failures much easier.