Skip to content

EvoSuite-generated tests contain local filesystem paths #76

@wtwhite

Description

@wtwhite

Some EvoSuite-generated test source files contain local filesystem paths built into them, like this:

  public static void setSystemProperties() {

    java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
    java.lang.System.setProperty("java.io.tmpdir", "/tmp");
    java.lang.System.setProperty("user.home", "/home/wtwhite");
    java.lang.System.setProperty("user.dir", "/home/wtwhite/code/regression-test-generation/find-diff-classes/testgen/mvnc/com/github/oshi/oshi-core/6.4.0");
  }

These could in theory affect test results, though in at least one full test run they did not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions