Search in sources :

Example 1 with DependencyManager

use of de.dagere.peass.dependency.DependencyManager in project peass by DaGeRe.

the class DependencyReader method readCompletedVersions.

public void readCompletedVersions(final StaticTestSelection initialdependencies) {
    dependencyManager = new DependencyManager(folders, executionConfig, kiekerConfig, env);
    changeManager = new ChangeManager(folders, iterator, executionConfig, dependencyManager.getExecutor());
    staticChangeHandler = new StaticChangeHandler(folders, executionConfig, dependencyManager);
    dependencyResult.setVersions(initialdependencies.getVersions());
    dependencyResult.setInitialversion(initialdependencies.getInitialversion());
    InitialVersionReader initialVersionReader = new InitialVersionReader(initialdependencies, dependencyManager, iterator);
    initialVersionReader.readCompletedVersions();
    DependencyReaderUtil.write(dependencyResult, resultsFolders.getStaticTestSelectionFile());
    lastRunningVersion = iterator.getTag();
}
Also used : ChangeManager(de.dagere.peass.dependency.ChangeManager) DependencyManager(de.dagere.peass.dependency.DependencyManager)

Example 2 with DependencyManager

use of de.dagere.peass.dependency.DependencyManager in project peass by DaGeRe.

the class DependencyReader method readInitialVersion.

public boolean readInitialVersion() throws IOException, InterruptedException, XmlPullParserException, ParseException, ViewNotFoundException {
    dependencyManager = new DependencyManager(folders, executionConfig, kiekerConfig, env);
    changeManager = new ChangeManager(folders, iterator, executionConfig, dependencyManager.getExecutor());
    staticChangeHandler = new StaticChangeHandler(folders, executionConfig, dependencyManager);
    InitialVersionReader initialVersionReader = new InitialVersionReader(dependencyResult, dependencyManager, iterator);
    if (initialVersionReader.readInitialVersion()) {
        DependencyReaderUtil.write(dependencyResult, resultsFolders.getStaticTestSelectionFile());
        lastRunningVersion = iterator.getTag();
        if (dependencyConfig.isGenerateTraces()) {
            generateInitialViews();
        }
        dependencyManager.cleanResultFolder();
        return true;
    } else {
        return false;
    }
}
Also used : ChangeManager(de.dagere.peass.dependency.ChangeManager) DependencyManager(de.dagere.peass.dependency.DependencyManager)

Aggregations

ChangeManager (de.dagere.peass.dependency.ChangeManager)2 DependencyManager (de.dagere.peass.dependency.DependencyManager)2