Skip to content

Conversation

@V-FEXrt
Copy link
Contributor

@V-FEXrt V-FEXrt commented Mar 1, 2024

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 to wake-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.
Screenshot from 2024-03-01 14-03-44

Copy link
Collaborator

@ag-eitilt ag-eitilt left a 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
Comment on lines 46 to 57
makeExecPlan
(
"diff",
"-u",
"--color",
actualFile.getPathName,
expectFile.getPathName,
)
(
expectFile,
actualFile,
)
Copy link
Collaborator

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 defs inside this block? Definitely not a critical change, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants