Search in sources :

Example 1 with MissingExecutionFinder

use of de.dagere.peass.reexecutions.MissingExecutionFinder in project peass by DaGeRe.

the class FindMissingValidation method main.

public static void main(final String[] args) throws JsonParseException, JsonMappingException, IOException, JAXBException {
    final RepoFolders folders = new RepoFolders();
    File reexecuteFolder = new File("results/reexecute-validation");
    reexecuteFolder.mkdirs();
    for (String project : GetValidationExecutionFile.VALIDATION_PROJECTS) {
        LOG.info("Analyzing {}", project);
        File executionFile = GetValidationExecutionFile.getValidationExecutionFile(project);
        ExecutionData tests = Constants.OBJECTMAPPER.readValue(executionFile, ExecutionData.class);
        MissingExecutionFinder missingExecutionFinder = new MissingExecutionFinder(project, reexecuteFolder, tests, "commentExec");
        missingExecutionFinder.findMissing(new File[] { folders.getValidationDataFolder(project) });
    }
}
Also used : MissingExecutionFinder(de.dagere.peass.reexecutions.MissingExecutionFinder) File(java.io.File) RepoFolders(de.dagere.peass.analysis.all.RepoFolders) ExecutionData(de.dagere.peass.dependency.persistence.ExecutionData)

Aggregations

RepoFolders (de.dagere.peass.analysis.all.RepoFolders)1 ExecutionData (de.dagere.peass.dependency.persistence.ExecutionData)1 MissingExecutionFinder (de.dagere.peass.reexecutions.MissingExecutionFinder)1 File (java.io.File)1