Skip to content
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

Fix fluentsharp test that is failing at appveyor #57

Open
DinisCruz opened this issue Jan 18, 2015 · 3 comments
Open

Fix fluentsharp test that is failing at appveyor #57

DinisCruz opened this issue Jan 18, 2015 · 3 comments

Comments

@DinisCruz
Copy link
Contributor

https://ci.appveyor.com/project/DinisCruz/fluentsharp

image

https://ci.appveyor.com/project/DinisCruz/fluentsharp/build/tests

image

@DinisCruz
Copy link
Contributor Author

it's a different one now

image

this one is caused by the fact that the tests are running without a desktop

@alexandrustanimir
Copy link
Contributor

I was unable to find a method to check for this kind of execution context where you don`t have desktop :(. As a workaround we can ignore the test if we find an environment variable specific to appveyor.

var envs = Environment.GetEnvironmentVariables().toList();
foreach (var item in envs)
{
if (item.Value.ToString().contains("appveyor"))
{
"Appveyor is running in terminal mode.(Skipping)".assert_Ignore();
return;
}
}
What do you think ?

@DinisCruz
Copy link
Contributor Author

yeah, with the caveat that we should be using an extension method like

if ("appveyor".environment_Variable().valid())
    ...

:)

Btw, have you pinged Appveyor and asked about tests that require desktop? They really should have a solution for that, or no UI QA tests will be able to be executed there

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

No branches or pull requests

2 participants