Skip to content

Conversation

@Iain-S
Copy link
Collaborator

@Iain-S Iain-S commented Jan 5, 2023

Summary

Add an end-to-end test to check that running each CLI command in turn gives no errors.

Detail

Adds a functional test in test_functional.py that runs each of the CLI commands in the proper order. That unit test expects a postgres db to be up and running and to have a database named src. In the GitHub action, we set up such a database. Since the unit test is destructive (it overwrites any src and dst databases it connects to) we require an env var to be set to run the test.

Misc

Closes #10

@Iain-S Iain-S force-pushed the functional-tests branch 3 times, most recently from 84ff995 to bc3614e Compare January 5, 2023 17:42
@Iain-S Iain-S requested a review from myyong January 5, 2023 17:50
@Iain-S Iain-S changed the base branch from main to create-tables January 5, 2023 17:51
@Iain-S Iain-S changed the base branch from create-tables to main January 5, 2023 18:12
@Iain-S Iain-S changed the base branch from main to create-tables January 5, 2023 18:13
Base automatically changed from create-tables to main January 6, 2023 10:30
@Iain-S
Copy link
Collaborator Author

Iain-S commented Jan 11, 2023

@myyong The functional tests run fine for me and on the GH Action. Could you check that they work for you and let me know if I should add some more explanation to the Testing section of the README?

@Iain-S Iain-S merged commit 902fb07 into main Jan 19, 2023
@Iain-S Iain-S deleted the functional-tests branch January 19, 2023 10:21
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.

End-to-end testing

2 participants