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

getting started integration tests #4087

Merged
merged 8 commits into from
Jul 2, 2024

Conversation

VicVerevita
Copy link
Contributor

I have picked up on the #777 issue. I saw that there was already a pull request tackling the integration tests for sqlite, so I started the postgresql ones.

To run the tests, I used the test_all script.

@VicVerevita
Copy link
Contributor Author

This is my first ever open-source pr, so if there are any good practices that I can add to the tests/description, I am glad to take reviews on that as well.

@weiznich weiznich requested a review from a team June 27, 2024 17:56
@VicVerevita VicVerevita changed the title postgresql integration tests postgresql and mysql getting started integration tests Jun 27, 2024
@VicVerevita VicVerevita changed the title postgresql and mysql getting started integration tests getting started integration tests Jul 1, 2024
Copy link
Member

@weiznich weiznich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this 👍

Looks good for me beside the fact the the trycmd dependency should be a dev-dependency.

@@ -7,6 +7,7 @@ publish = false
[dependencies]
diesel = { version = "2.1.0", path = "../../../diesel", features = ["mysql"] }
dotenvy = "0.15"
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -7,6 +7,7 @@ publish = false
[dependencies]
diesel = { version = "2.1.0", path = "../../../diesel", features = ["mysql"] }
dotenvy = "0.15"
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -7,6 +7,7 @@ publish = false
[dependencies]
diesel = { version = "2.1.0", path = "../../../diesel", features = ["mysql"] }
dotenvy = "0.15"
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -7,6 +7,7 @@ publish = false
[dependencies]
diesel = { version = "2.1.0", path = "../../../diesel", features = ["postgres"] }
dotenvy = "0.15"
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -7,6 +7,7 @@ publish = false
[dependencies]
diesel = { version = "2.1.0", path = "../../../diesel", features = ["postgres"] }
dotenvy = "0.15"
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -7,6 +7,7 @@ publish = false
[dependencies]
diesel = { version = "2.1.0", path = "../../../diesel", features = ["postgres"] }
dotenvy = "0.15"
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -10,6 +10,7 @@ publish = false
diesel = { version = "2.1.0", path = "../../../diesel", features = ["sqlite"] }
dotenvy = "0.15"
libsqlite3-sys = { version = "0.28.0", features = ["bundled"] }
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -9,6 +9,7 @@ publish = false
diesel = { version = "2.1.0", path = "../../../diesel", features = ["sqlite", "returning_clauses_for_sqlite_3_35"] }
dotenvy = "0.15"
libsqlite3-sys = { version = "0.28.0", features = ["bundled"] }
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@@ -9,6 +9,7 @@ publish = false
diesel = { version = "2.1.0", path = "../../../diesel", features = ["sqlite", "returning_clauses_for_sqlite_3_35"] }
dotenvy = "0.15"
libsqlite3-sys = { version = "0.28.0", features = ["bundled"] }
assert_cmd = "2.0.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev-dependency as we only use that in tests

@weiznich weiznich added this pull request to the merge queue Jul 2, 2024
@weiznich
Copy link
Member

weiznich commented Jul 2, 2024

Thanks again for working on this. This is good work for your first PR 🎉

Merged via the queue into diesel-rs:master with commit d4aa69d Jul 2, 2024
49 checks passed
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

Successfully merging this pull request may close these issues.

2 participants