MonoRepo v0.2.1 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

Link to this function

build_config_files()

View Source
build_config_files() :: :ok

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.

Link to this function

build_deps()

View Source
build_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.

Link to this function

build_test_paths()

View Source
build_test_paths() :: [String.t()]

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.

Link to this function

build_test_paths(child)

View Source
build_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.