Stream: dev

Topic: โœ” Java testing messages


view this post on Zulip kuhlaid (Dec 12 2023 at 16:09):

I am trying to test zip file replacement in the API (https://github.com/kuhlaid/dataverse/blob/691ddb7f3764dab9868d6e2fd6c7f1b93239e622/src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java#L2372C8-L2372C8) but am wondering if the Java print statements will output to the GitHub actions log as part of the Maven unit test? I'm not seeing any of my print statements as part of action output. Is there a way to print statements from the Java testing files so they appear in the GitHub action logs?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 12 2023 at 16:43):

No, FilesIT is an API test. We don't have these hooked up to GitHub Actions yet. That's what this issue is about: Automate running of API test suite in containers #9790

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 12 2023 at 16:44):

Are you able to run FilesIT locally? It should be mvn test -Dtest=FilesIT.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 12 2023 at 16:45):

You'll need to point it again a Dataverse server, of course. Either https://demo.dataverse.org or perhaps Dataverse running in containers on localhost.

view this post on Zulip kuhlaid (Dec 12 2023 at 17:25):

Thank you @Philip Durbin. I do not have a local environment setup (aside from a basic Docker instance).

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 12 2023 at 17:27):

Oh, well, Docker is enough. Should work.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 12 2023 at 17:28):

Maybe you could try the mvn command above.

view this post on Zulip Notification Bot (Dec 14 2023 at 02:00):

kuhlaid has marked this topic as resolved.


Last updated: Nov 01 2025 at 14:11 UTC