kazurayam/unittest-helper

Want to use TestOutputOrganizer class in a Java code under the `<project>/src/main/java` directory

Closed this issue · 4 comments

Want to use TestOutputOrganizer class in a Java code under the `/src/main/java` directory

If I am going to support resolving the <projectDir>/src/main/java, then I should rename the class TestOutputOrganizer to ProjectOutputOrganizer becuase the scope of the class is stretched wider

I am not going to do this.

You can do it by

TestOutputOrgianizer too = 
    new TestOutputOrganizer.Builder(class)
        .addCodeSourcePathElementsUnderProjectDirectory(
            new CodeSourcePathElementsUnderProjectDirectory("build", "classes", "main", "java"));
        ...

You can do it by

But I haven't documented it yet.!