Skip to content

[WIP][Tests] Fix locally failing tests #343

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[WIP][Tests] Fix locally failing tests #343

wants to merge 1 commit into from

Conversation

Yiabiten
Copy link
Contributor

@Yiabiten Yiabiten commented Oct 4, 2018

Do not assume Console width in contributors machines
(in my situation: Win10 with console width=120)

I fixed all failing tests: basically all tests with some option help-text's length higher than 80 (that are expected to be wrapped) but I think this should be done for all tests.

Do not assume Console width in contributors machines
(My situation: Win10 with console width=120)
@ericnewton76
Copy link
Member

ericnewton76 commented Dec 18, 2018

This issue has caused problems for several.

The other prblem is it works on your local but the build server does something different and causes the same tests to fail.

Build server (appveyor) is using redirected output, so calls to GetWindowInfo throw an IOException when the sizing is being determined. The call stack doesnt help much, only telling the test that failed and not the specific method within the library thats initiating a call to Console.get_WindowHeight : https://ci.appveyor.com/project/commandlineparser/commandline/build/2.2.69-lipauiuy/job/xu37x7acde81g12p#L466

Another fellow reported that Docker seems to do similar as Appveyor, where the console output is probably redirected and would cause an IOException to be thrown.

I'm just not sure what's generating that call to Console.get_WindowHeight. Searching for any "WindowHeight" strings in the project bring up literally nothing.

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

Successfully merging this pull request may close these issues.

2 participants