-
Notifications
You must be signed in to change notification settings - Fork 227
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
Testing: Having trouble running the tests #726
Comments
Hi @sjh37, Just found this project: northwind_psql which has some script to create the northwind db under Postgre |
In these tests, some artifacts seem to be pointing to your userprofile directories, and these are not in the SCC.
L254 var subFolder = templateType == TemplateType.EfCore2 ? "TestComparison\EfCore2NorthwindSqlCe40" : "TestComparison\EfCore3NorthwindSqlCe40"; L332 var testRootPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "OneDrive\Documents");
|
@sjh37 One more thing... |
Hi Simon (@sjh37 ), I have created a fork/branch and preparing a PR for your review, of course you are free to accept or not. More details coming soon. |
Hi Simon [@sjh37], Did you release yet ? I would really like to revisit the unit tests project. I would like to integrate the Sqlite part, but for that, I would like to be able to run the tests fully. Maybe I should first do :
Ef2 is dropping out of support. Maybe we should move some of the tests from EfCore3 to Ef6; N.b. we should consider consolidating the .NET Integration Tests by generating; that way upkeeping the unit tests for all versions; and we could use the pre-compile to exclude version specific (for example: netcoreapp2.1)
|
Hi Simon (@sjh37 ); The thing that initially broke.... can you check if it's not simply the fact that I had disabled the .pfx code signing from the main assembly (since I don't have the pwd).... |
Hi Bobby, Thanks for all of your help, much appreciated. If you give me your email address, I'll send you a commercial licence as a thankyou. |
I'll add in the |
I have sent you an email to the address listed on your github profile. Thank you in advanced. |
Instead of having integration test projects for EfCoreX etc.... you should consider having a test project per Db technologies (or at the very least, having test categories)
n.b. these change would only affect your tests project, so your main product should not be affected. I have checkout the EfCore code base, they have over 88,000 tests; and they use (localDb)\MSSQLLocalDb to run all their integration tests; you should consider this option to. Although supporting UserSecrets and removing hardcoded connection string from the test code will greatly help. |
Also, using MSSQL, should you not consider integration tests against, V12, V14 (azure sql), V16, V17 ?
|
It seems to be missing AlphabeticalListOfProducts |
I have already added the |
I am looking inside the file northwind.sql, there are no mention of any table named I had found this NOTE: Also, the file is name |
I looked at the SQL Server Northwind database and that does not have a table named |
I agree. Maybe we should just adjust the comparison scrupt in TestComparason |
Released v3.6.0 - This should improve testing. Still making testing better and less of a snowflake. |
Hi @sjh37,
I am having some trouble with settings/running the tests
The text was updated successfully, but these errors were encountered: