Dagger
Search

runTests

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/EmmS21/daggerverse/runTests@841e041068a19582e35cd6f56bf4f12df9d6ea0a

Entrypoint

Return Type
RunTests !
Example
dagger -m github.com/EmmS21/daggerverse/runTests@841e041068a19582e35cd6f56bf4f12df9d6ea0a call \
func (m *myModule) example() *RunTests  {
	return dag.
			RunTests()
}
@function
def example() -> dag.RunTests:
	return (
		dag.run_tests()
	)
@func()
example(): RunTests {
	return dag
		.runTests()
}

Types

RunTests 🔗

test() 🔗

Return Type
String !
Example
dagger -m github.com/EmmS21/daggerverse/runTests@841e041068a19582e35cd6f56bf4f12df9d6ea0a call \
 test
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			RunTests().
			Test(ctx)
}
@function
async def example() -> str:
	return await (
		dag.run_tests()
		.test()
	)
@func()
async example(): Promise<string> {
	return dag
		.runTests()
		.test()
}

buildTest() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
repoString !-No description provided
tagString !-No description provided
Example
dagger -m github.com/EmmS21/daggerverse/runTests@841e041068a19582e35cd6f56bf4f12df9d6ea0a call \
 build-test --src DIR_PATH --repo string --tag string
func (m *myModule) example(ctx context.Context, src *Directory, repo string, tag string) string  {
	return dag.
			RunTests().
			BuildTest(ctx, src, repo, tag)
}
@function
async def example(src: dagger.Directory, repo: str, tag: str) -> str:
	return await (
		dag.run_tests()
		.build_test(src, repo, tag)
	)
@func()
async example(src: Directory, repo: string, tag: string): Promise<string> {
	return dag
		.runTests()
		.buildTest(src, repo, tag)
}