Testcontainers dotnet: store videos for failed tests onto local disc or upload to storage account #787
-
Hi, I would like to store (or store and upload) the videos of failed tests to first local disk and then upload these to an azure storage account (this last bit I can handle). Is there a way I can mount a volume into the video container (or some other method) to gain access to it? |
Beta Was this translation helpful? Give feedback.
Answered by
HofmeisterAn
Feb 14, 2023
Replies: 1 comment 7 replies
-
You can use Read the file straight from the container with |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
HofmeisterAn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
WithBindMount(string, string)
to mount a host path into the container. Please note this is considered a bad practice.Read the file straight from the container with
ReadFileAsync(string, CancellationToken)
or download it from an HTTP endpoint.