I want to start unit testing my modules in my daggerverse.
I have the following structure with a tests submodule in each module and a dev module that defines the CI pipelines for the repo:
daggerverse
├── modA
│ ├── dagger.json
│ └── tests
│ └── dagger.json
├── modB
│ ├── dagger.json
│ └── tests
│ └── dagger.json
...
└── dev
└── dagger.json
I can call each tests module using the cli with a common all function:
dagger call -m <module>/tests all
My issue is that I cannot call the functions from my dev module.
I can load the dagger.Module object using the following function on my dagger.Directory: src.AsModule(dagger.DirectoryAsModuleOpts{SourceRootPath: path})
However, I do not see how to call the all function once I get the module object.
Is is possible to call a module's functions when loaded dynamically?