Skip to content

Commit

Permalink
improve unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbudde committed Oct 10, 2024
1 parent 051ab4b commit 522b852
Show file tree
Hide file tree
Showing 25 changed files with 381 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ private static Set<String> parseResourceFilesFromPath(Path subDir) {

private static Set<String> parseResourceFiles(Stream<Path> resources) throws IOException {
return resources
.filter(file -> file.toFile().isFile())
.filter(file -> file.getFileName().toString().endsWith(".xml"))
.filter(file -> !file.getFileName().toString().toString().contains("/textly/"))
.filter(file -> !file.getParent().startsWith("_"))
.filter(file -> file.toFile().isFile())
.map(file -> Util.readFileContent(file.toString()))
.map(TestToolboxBlocksAreUsedInTestFiles::getBlockNamesFromContent)
.flatMap(Collection::stream)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ public void testAllRobotSpecificProgramsAsUnitTests() throws Exception {
checkAndShowTestResult();
}

// @Ignore
@Ignore
@Test
public void testOneRobotSpecificProgramAsUnitTests() throws Exception {
String robotName = "ev3dev";
String programName = "sensors_ht";
String robotName = "ev3lejosv1";
String programName = "textlyJava";
LOG.info("========= testing program " + programName + " for robot " + robotName);
final String resourceDirectory = setupRobotFactoryAndGetResourceDirForRobotSpecificTests(robotName);
runRegenerateAndCodeGenerationForOneRobotSpecificProgram(resourceDirectory, programName + ".xml", robotName, Collections.emptyList());
Expand Down

Large diffs are not rendered by default.

This file was deleted.

0 comments on commit 522b852

Please sign in to comment.