You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to encapsulate the following code to simplify the tests.
// Create Containerctx:=context.Background()
container, err:=RunContainer(ctx,
WithMappingFile("hello", "hello-world.json"),
)
iferr!=nil {
t.Fatal(err)
}
// Clean up the container after the test is completet.Cleanup(func() {
iferr:=container.Terminate(ctx); err!=nil {
t.Fatalf("failed to terminate container: %s", err)
}
})
Scope
Add a new API method to the library
Update unit tests to use the new method
Update the documentation, especially QuickStart and examples
@Vayras sure, please feel free to go ahead! The project structure is really simple: just one file and the test file for it in the repository root. The rest are the documentation and the examples that can be updated as we go
oleg-nenashev
changed the title
Add API for creating a Testcontainer with auto^termination
Add API for creating a Testcontainer with auto-termination
Aug 9, 2023
Proposal
It would be nice to encapsulate the following code to simplify the tests.
Scope
References
The text was updated successfully, but these errors were encountered: