STAMP-project / dspot

Automatically detect and generate missing assertions for Junit test cases (also known as test amplification)
https://dspot-demo.stamp-project.eu/
GNU Lesser General Public License v3.0
114 stars 28 forks source link

Test errors building DSpot #555

Closed ltboye closed 5 years ago

ltboye commented 6 years ago

Characteristics

Description

mvn test on DSpot fails for me. It gives the following error several places:

java.lang.RuntimeException: spoon.compiler.InvalidClassPathException: /C:/Users/Lars%20Thomas%20Boye/.m2/repository/junit/junit/4.12/junit-4.12.jar does not exist, it is not a valid folder

It seems to be a Windows path problem (the jar is in the repo).

danglotb commented 6 years ago

Hi @ltboye

Thank you for reporting this issue. I'm working on it. In the meantime, you can skip the test using

mvn clean package -DskipTests

Best.

danglotb commented 6 years ago

Hello,

Could please try to run the test using the branch danglotb/fix-win-compatibility:

git remote add danglotb https://github.com/danglotb/dspot.git
git fetch danglotb fix-win-compatibility
git checkout fix-win-compatibility
mvn clean test

Thank you.

ltboye commented 6 years ago

The results with this is Tests run: 167, Failures: 2, Errors: 29, Skipped: 9

(Last part of) output attached.

mvn clean test.txt

danglotb commented 6 years ago

Thank you.

The issue is that some paths are starting with a / while it should not on windows, e.g. /C:/Users/Lars%20Thomas%20Boye/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar

I keep searching.

danglotb commented 5 years ago

Closing this issue. Please reopen it or open a new one. Thank you.