You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by avelino June 23, 2021
The postgres adapter depends on the postgreSQL (database) server to run (go test), i.e. it was developed with integration testing.
Integration testing is necessary, but it raises the barrier for new members to contribute, i.e. for a person to make any contribution he needs to learn to configure the development environment and only then contribute. I think it's great to have people immersed in the project, but this is not the reality of open source projects that people contribute in their spare time (usually without pay)
I don't think it is necessary to "remove" the integration test but put it in its place:
unit test that does not depend on external services (e.g. PostgreSQL) running with go test ...., so our people were able to run the tests locally (on their machines)
Integration test: run only on CI (GitHub Actions or Travis CI) on pull request - doesn't necessarily have to be written with go test
What would be the best option to write postgres adapter mock?
Discussed in #562
Originally posted by avelino June 23, 2021
The
postgres
adapter depends on the postgreSQL (database) server to run (go test
), i.e. it was developed with integration testing.Integration testing is necessary, but it raises the barrier for new members to contribute, i.e. for a person to make any contribution he needs to learn to configure the development environment and only then contribute. I think it's great to have people immersed in the project, but this is not the reality of open source projects that people contribute in their spare time (usually without pay)
I don't think it is necessary to "remove" the integration test but put it in its place:
go test ....
, so our people were able to run the tests locally (on their machines)go test
What would be the best option to write
postgres
adapter mock?Ref:
F
... is for lots of things to Fix! #558The text was updated successfully, but these errors were encountered: