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

Testing: dump_databases flag #5955

Merged

Conversation

tokejepsen
Copy link
Member

@tokejepsen tokejepsen commented Nov 26, 2023

Changelog Description

This introduces a dump_databases flag which makes it convenient to output the resulting database of a successful test run. The flag supports two formats; bson and json.

Due to outputting to the test data folder, when dumping the databases, the test data folder will persist.

Split from #5644

Testing notes:

openpype_console runtests C:\Users\tokejepsen\OpenPype\tests\integration\hosts\maya\test_publish_in_maya.py --dump_databases json --mongo_url "mongodb://localhost:2707/"

NOTE: I have not tested all integrations cause I dont have them locally.

openpype_console runtests --dump_databases json --mongo_url "mongodb://localhost:2707/"

@tokejepsen tokejepsen added the sponsored Client endorsed or requested label Nov 26, 2023
@tokejepsen tokejepsen self-assigned this Nov 26, 2023
@ynbot ynbot added size/XS Denotes a PR changes 0-99 lines, ignoring general files type: feature Larger, user affecting changes and completely new things labels Nov 26, 2023
@tokejepsen tokejepsen marked this pull request as draft November 27, 2023 08:43
@tokejepsen
Copy link
Member Author

Putting this on hold while I work on the json export, cause this flag should determine the output format.

@tokejepsen tokejepsen marked this pull request as ready for review November 27, 2023 08:59
@tokejepsen
Copy link
Member Author

Ready for review again.

@tokejepsen tokejepsen assigned kalisp and unassigned tokejepsen Dec 5, 2023
@kalisp kalisp merged commit 129b35e into ynput:develop Dec 6, 2023
7 checks passed
@ynbot ynbot added this to the next-patch milestone Dec 6, 2023
@tokejepsen tokejepsen deleted the feature/testing_dump_databases_flag branch December 6, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR changes 0-99 lines, ignoring general files sponsored Client endorsed or requested type: feature Larger, user affecting changes and completely new things
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants