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

Tests do not run in Cake build but runs perfectly in VS and dotnet test #67

Closed
alkampfergit opened this issue Dec 23, 2017 · 1 comment
Assignees

Comments

@alkampfergit
Copy link
Contributor

alkampfergit commented Dec 23, 2017

Happens on the hotfix but also in develop branches.

I've set the Environment variables, running tests in VS or with dotnet test runs perfectly without any error.

Running the cake.ps1script generates errors running test in mongodb and SQL Server because of wrong connection string.

Probably cake build does not honor environment variable.

Here is cake output build.

image

and this is not the connection string I've set in the Environment variable.
Alk.

@alkampfergit alkampfergit self-assigned this Dec 23, 2017
@alkampfergit
Copy link
Contributor Author

Found the error, cake script is bugged because uses the wrong environment variable

image

As you can verify from code, the real variable used in the code is NSTORE_MSSQL

image

The same happens for mongodb.

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

1 participant