Search in sources :

Example 1 with TestcaseData

use of de.dagere.peass.analysis.helper.read.TestcaseData in project peass by DaGeRe.

the class MissingExecutionFinder method removeSlurmExecutions.

private void removeSlurmExecutions(final File folder) throws JAXBException {
    ChangeReader reader = new ChangeReader(folder.getName(), tests);
    reader.readFile(folder);
    for (Entry<String, TestcaseData> entry : reader.getAllData().getData().entrySet()) {
        String version = entry.getKey();
        TestSet versionsTests = tests.getVersions().get(version);
        LOG.debug("Removing from: {}", version);
        for (TestCase test : entry.getValue().getTestcaseData().keySet()) {
            removeTestFromTestSet(test.getClazz(), test.getMethod(), versionsTests);
        }
    }
}
Also used : TestCase(de.dagere.peass.dependency.analysis.data.TestCase) ChangeReader(de.dagere.peass.analysis.changes.ChangeReader) TestcaseData(de.dagere.peass.analysis.helper.read.TestcaseData) TestSet(de.dagere.peass.dependency.analysis.data.TestSet)

Aggregations

ChangeReader (de.dagere.peass.analysis.changes.ChangeReader)1 TestcaseData (de.dagere.peass.analysis.helper.read.TestcaseData)1 TestCase (de.dagere.peass.dependency.analysis.data.TestCase)1 TestSet (de.dagere.peass.dependency.analysis.data.TestSet)1