/** * Loads TestOutcomes from a SpecFlow output file or a directory containing output files. * * This is the console output, not the XML output file, which does not contain the details about each step * execution. */ @Override public List<TestOutcome> loadOutcomesFrom(File source) throws IOException { if (source.isDirectory()) { List<TestOutcome> outcomes = new ArrayList<>(); for(File outputFile : source.listFiles()) { outcomes.addAll(outcomesFromFile(outputFile)); } return outcomes; } else { return outcomesFromFile(source); } }
/** * Loads TestOutcomes from a SpecFlow output file or a directory containing output files. * * This is the console output, not the XML output file, which does not contain the details about each step * execution. */ @Override public List<TestOutcome> loadOutcomesFrom(File source) throws IOException { if (source.isDirectory()) { List<TestOutcome> outcomes = Lists.newArrayList(); for(File outputFile : source.listFiles()) { outcomes.addAll(outcomesFromFile(outputFile)); } return outcomes; } else { return outcomesFromFile(source); } }
/** * Loads TestOutcomes from a SpecFlow output file or a directory containing output files. * * This is the console output, not the XML output file, which does not contain the details about each step * execution. */ @Override public List<TestOutcome> loadOutcomesFrom(File source) throws IOException { if (source.isDirectory()) { List<TestOutcome> outcomes = Lists.newArrayList(); for(File outputFile : source.listFiles()) { outcomes.addAll(outcomesFromFile(outputFile)); } return outcomes; } else { return outcomesFromFile(source); } }