Asqatasun / Web-Snapshot

Java API to create snaphots or thumbnails of webpage
GNU Affero General Public License v3.0
8 stars 7 forks source link

BUILD FAILURE - websnapshot-service #2

Open dzc34 opened 8 years ago

dzc34 commented 8 years ago

$ cd /opt $ sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 $ sudo tar -xvf phantomjs-1.9.7-linux-x86_64.tar.bz2 $ sudo rm phantomjs-1.9.7-linux-x86_64.tar.bz2 $ cd /home/<user> $ git clone https://github.com/Asqatasun/Web-Snapshot.git $ cd /home/<user>/Web-Snapshot $ mvn clean install


[INFO] websnapshot ....................................... SUCCESS [0.317s] [INFO] websnapshot-api ................................... SUCCESS [1.468s] [INFO] websnapshot-service ............................... FAILURE [20.624s] [INFO] websnapshot-impl .................................. SKIPPED [INFO] websnapshot-persistence ........................... SKIPPED [INFO] websnapshot-webapp ................................ SKIPPED [INFO] websnapshot-resources ............................. SKIPPED

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project websnapshot-service: There are test failures.


$ cd websnapshot-service/target/surefire-reports/ $ cat org.asqatasun.websnapshot.service.SnapshotCreatorImplTest.txt


Test set: org.asqatasun.websnapshot.service.SnapshotCreatorImplTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE! testGetThumbnail(org.asqatasun.websnapshot.service.SnapshotCreatorImplTest) Time elapsed: 0.028 sec <<< ERROR! java.lang.IllegalStateException: The driver executable does not exist: /opt/phantomjs/bin/phantomjs at com.google.common.base.Preconditions.checkState(Preconditions.java:177)


$ ls /opt

. .. phantomjs-1.9.7-linux-x86_64

dzc34 commented 8 years ago

$ sudo ln -s /opt/phantomjs-1.9.7-linux-x86_64 /opt/phantomjs

[INFO] websnapshot ....................................... SUCCESS [0.225s] [INFO] websnapshot-api ................................... SUCCESS [1.141s] [INFO] websnapshot-service ............................... SUCCESS [48.506s] [INFO] websnapshot-impl .................................. SUCCESS [2.096s] [INFO] websnapshot-persistence ........................... SUCCESS [47.111s] [INFO] websnapshot-webapp ................................ SUCCESS [11.775s] [INFO] websnapshot-resources ............................. SUCCESS [0.104s]

jkowalczyk commented 8 years ago

it's also a good idea ;-) Without this, you can still download, but you need to skip the tests