stg-tud / MUDetect

Mozilla Public License 2.0
24 stars 8 forks source link

Unable to build the project #21

Open mrdaliri opened 4 years ago

mrdaliri commented 4 years ago

Hi, I tried to do mvn install on my machine with Java version 1.8.0 and Maven 3.6.1. However, it eventually failed with following errors:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for MuDetect 0.0.3-SNAPSHOT:
[INFO]
[INFO] MuDetect ........................................... SUCCESS [  0.271 s]
[INFO] API-Usage Graphs ................................... SUCCESS [ 11.846 s]
[INFO] src2egroum2aug ..................................... FAILURE [ 24.959 s]
[INFO] MuBench ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  38.936 s
[INFO] Finished at: 2019-09-20T18:54:00-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project src2egroum2aug: There are test failures.

I have cloned the latest commit on master branch (5aacce1b2905f41096e4b1519c87c3e64046047a).

salsolatragus commented 4 years ago

Hi @mrdaliri,

thanks for trying MUDetect. As per the error message in the last line, there are tests failing on your machine. Can you tell me which tests these are? This should be printed to your console somewhere above the output you pasted.

Some of the tests are a bit tricky, since the mining and detection is not necessarily deterministic, due to the greedy extension strategy. You can always build without tests using mvn package -DskipTests (note that there is no need to install anything, as long as you don't have any other project depending on one of the MUDetect artifacts, so package is sufficient).

Please report back whether this solves your issue.

oneturkmen commented 4 years ago

@salsolatragus while also trying to test the project, it seems that the following tests are failing:

image

The failing tests are located in src2egroum2aug/src/test/java/edu/iastate/cs/egroum/aug/EncodeDefinitionsTest.java.

Even though everything is imported from hamcrest, it is still complaining for some reason.

oneturkmen commented 4 years ago

This additional import fixes the problem:

import static org.hamcrest.collection.IsEmptyCollection.empty;

Nevertheless, 2 tests out of 46 fail:

  1. image

  2. image