mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-22 13:33:18 +02:00
Merge pull request #8 from ripmeapp2/feature/testall
gradle testall to run tests incl flaky and slow, cyberdropdrippertest flaky, Feature/testall
This commit is contained in:
@@ -77,9 +77,9 @@ tasks.test {
|
||||
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
|
||||
}
|
||||
|
||||
tasks.register<Test>("slowTests") {
|
||||
tasks.register<Test>("testAll") {
|
||||
useJUnitPlatform {
|
||||
includeTags("slow")
|
||||
includeTags("any()", "none()")
|
||||
}
|
||||
}
|
||||
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@@ -7,12 +7,13 @@ import java.util.List;
|
||||
|
||||
import com.rarchives.ripme.ripper.rippers.ArtStationRipper;
|
||||
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ArtStationRipperTest extends RippersTest {
|
||||
|
||||
@Test
|
||||
@Tag("flaky")
|
||||
public void testArtStationProjects() throws IOException {
|
||||
List<URL> contentURLs = new ArrayList<>();
|
||||
contentURLs.add(new URL("https://www.artstation.com/artwork/the-dwarf-mortar"));
|
||||
@@ -25,7 +26,7 @@ public class ArtStationRipperTest extends RippersTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Failed with cloudflare protection")
|
||||
@Tag("flaky")
|
||||
public void testArtStationUserProfiles() throws IOException {
|
||||
List<URL> contentURLs = new ArrayList<>();
|
||||
contentURLs.add(new URL("https://www.artstation.com/heitoramatsu"));
|
||||
|
@@ -4,6 +4,7 @@ import com.rarchives.ripme.ripper.rippers.CyberdropRipper;
|
||||
import com.rarchives.ripme.utils.Http;
|
||||
import org.jsoup.nodes.Document;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -29,6 +30,7 @@ public class CyberdropRipperTest extends RippersTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Tag("flaky")
|
||||
public void testCyberdropNumberOfFiles() throws IOException {
|
||||
List<URL> testURLs = new ArrayList<URL>();
|
||||
|
||||
|
@@ -8,10 +8,12 @@ import java.util.List;
|
||||
import com.rarchives.ripme.ripper.rippers.HentaiNexusRipper;
|
||||
import org.json.JSONObject;
|
||||
import org.junit.Assert;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HentainexusRipperTest extends RippersTest {
|
||||
@Test
|
||||
@Tag("flaky")
|
||||
public void testHentaiNexusJson() throws IOException {
|
||||
List<URL> testURLs = new ArrayList<>();
|
||||
testURLs.add(new URL("https://hentainexus.com/view/9202"));
|
||||
|
@@ -5,10 +5,12 @@ import java.net.URL;
|
||||
|
||||
import com.rarchives.ripme.ripper.rippers.ImgboxRipper;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ImgboxRipperTest extends RippersTest {
|
||||
@Test
|
||||
@Tag("flaky")
|
||||
public void testImgboxRip() throws IOException {
|
||||
ImgboxRipper ripper = new ImgboxRipper(new URL("https://imgbox.com/g/FJPF7t26FD"));
|
||||
testRipper(ripper);
|
||||
|
Reference in New Issue
Block a user