gintool / gin

GI in No Time - a Simple Microframework for Genetic Improvement
MIT License
43 stars 20 forks source link

Probable bug within the Project class #92

Closed GiovaniGuizzo closed 1 year ago

GiovaniGuizzo commented 1 year ago

The following piece of code from the addDirMaven method in the Project.java class seems buggy:

        String outputTest = null;
        if (build != null) {
            model.getBuild().getTestOutputDirectory();
        }
        if (outputTest == null) {
            outputTest = "target" + File.separator + "test-classes";
        }

outputTest is always null and the result of model.getBuild().getTestOutputDirectory(); is never used. Is this line supposed to be outputTest = model.getBuild().getTestOutputDirectory();?

GiovaniGuizzo commented 1 year ago

If this is buggy, then we need a few test cases to test this.

GiovaniGuizzo commented 1 year ago

Resolved in the last commit.