resolveTestConfigurationPath method

String resolveTestConfigurationPath(
  1. Configuration testConfiguration
)

Resolves the test configuration path. Defaults to bonesUiTestConfigFile.

Implementation

String resolveTestConfigurationPath(Configuration testConfiguration) {
  String configurationPath;

  if (testConfiguration.configurationPath == 'dart_test.yaml') {
    if (!bonesUiTestConfigFile.existsSync()) {
      generateBonesUITestConfigFile();
    }

    configurationPath = bonesUiTestConfigFile.path;
  } else {
    configurationPath = testConfiguration.configurationPath;
  }

  return configurationPath;
}