-
Notifications
You must be signed in to change notification settings - Fork 7
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
Prepared working solution of Postgres that can be used with integration tests #1
Conversation
…n process return error code; bum dotnet standard to v2.0; setup basic test
I'm unable to comment on the files in the PR since it's too big. Here are some gathered comments:
|
Ad1: #2 (this will be done when code be ready for publishing) To summarize: ad2, ad4 need to be fixed as a part of this PR. Rest can be done as a different PR. |
5 and 6 have easy fixes and significant value. |
One more comment: use an options object instead of single parameters to configure call to |
…e of it binaries size will be resolved
…ception nor custom finalization; Postgres server start process is not disposable anymore cause it is one time call to pg_ctrl; Postgres server stop process is not throwing exceptions anymore - it should report only own output buffer;
…stead Start() function is responsible for constructing and preparing running PostgresRunner instance; in case when running Postgres failed then PostgresRunner instance should be disposed.
Ad1- postponed |
…n be run directly from IDE (vs or rider)
* Prepared working solution of Postgres that can be used with integration tests (#1) * PortWatcher implementation * PostgresBinaryLocator implementation * Move code one level up in repo * PostgresRunner implementation * Introduced Postgresinitializator process starter; throw exception when process return error code; bum dotnet standard to v2.0; setup basic test * distinguish pg executables based on os platform; fix long polling of free tcp port * Added missed binaries of postgres (3 os platforms supported by net core) * Updated linux based postgres binaries * Provided sample test suit how to execute pgrunner inside of xunit class fixture * Removed OSX binaries; OSX as OS Platform won't be supported till issue of it binaries size will be resolved * Fix Postgres Runner disposable procedure -there are no more thrown exception nor custom finalization; Postgres server start process is not disposable anymore cause it is one time call to pg_ctrl; Postgres server stop process is not throwing exceptions anymore - it should report only own output buffer; * Added possibility so specify database which will be used to build connection string * PostgresRunner doesn't use try/catch block in constructor anymore; instead Start() function is responsible for constructing and preparing running PostgresRunner instance; in case when running Postgres failed then PostgresRunner instance should be disposed. * Provided xunit.runner.visualstudio to Postgres2Go.Samples so tests can be run directly from IDE (vs or rider) * Corrected licensing (#18) Corrected licensing * #15 use options object in PostgresRunner API * #15 use options object in PostgresRunner API
Prepared working solution for Windows and Linux, compatible with net standard 2.0.