MonoRepo v0.2.0 MonoRepo.Test View Source
This module holds a set of functions to build test paths for your mix project configuration.
Instead of manually creating lists of folded applications` paths like "apps/app0/apps/app1/apps/app2/test" use functions from this module.
Link to this section Summary
Functions
Assembles all configuration files of all application's children into one.
Builds dependencies list to support testing.
Builds a list of paths to test directories of all the applications found in apps directory recursively.
Builds a list of paths to test directories of all the applications found in apps directory recursively until it finds the first match.
Link to this section Functions
Assembles all configuration files of all application's children into one.
Runs this procedure for cofig.exs and test.exs files found in children's config folders and writes assembled config.exs and test.exs to application's root folder, to conig subfolder.
build_deps()
View Sourcebuild_deps() :: [{Application.app(), [{:path, Path.t()}]}]
Builds dependencies list to support testing.
This function MUST be used together with build_test_paths/0
in order to
start all applications before tests evaluation.
Builds a list of paths to test directories of all the applications found in apps directory recursively.
It means that in case an application is apps directory includes apps directory, all those apps' test directories will be included.
build_test_paths(child)
View Sourcebuild_test_paths(child :: MonoRepo.child()) :: [String.t()]
Builds a list of paths to test directories of all the applications found in apps directory recursively until it finds the first match.
Behaves in simmilar fashion to it's /0 implementation.