Skip to content

Commit

Permalink
Added test exclusions to make Travis able to complete in time
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Aug 1, 2017
1 parent cafcb29 commit c63c9b5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
.DS_Store
.ant-targets-build.xml
.classpath
.project
build/
dist/
jars/
outcomes/
reports/
src/it/unimi/di/law/warc/filters/parser/FilterParser.java
src/it/unimi/di/law/warc/filters/parser/FilterParserConstants.java
src/it/unimi/di/law/warc/filters/parser/FilterParserTokenManager.java
src/it/unimi/di/law/warc/filters/parser/ParseException.java
src/it/unimi/di/law/warc/filters/parser/SimpleCharStream.java
src/it/unimi/di/law/warc/filters/parser/Token.java
src/it/unimi/di/law/warc/filters/parser/TokenMgrError.java
.settings/
6 changes: 0 additions & 6 deletions test/it/unimi/di/law/bubing/frontier/VisitStateSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;

import org.junit.Ignore;
import org.junit.Test;

import com.google.common.base.Charsets;
Expand Down Expand Up @@ -73,9 +72,4 @@ public void testResize() {
assertTrue(s.isEmpty());
}

@Ignore
@Test
public void testSerialization() {
// TODO
}
}
7 changes: 7 additions & 0 deletions test/it/unimi/di/law/bubing/sieve/MercatorSieveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@
import java.util.Random;

import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assume.assumeFalse;

import com.google.common.io.Files;


public class MercatorSieveTest {

@Before
public void excludeTravis() {
assumeFalse(System.getenv("TRAVIS") != null); // skip all tests if running under Travis Continuous Integration
}

@SuppressWarnings("unchecked")
@Test
public void testMultiThreadedTestSequentialDequeue() throws InterruptedException, IOException {
Expand Down
8 changes: 8 additions & 0 deletions test/it/unimi/di/law/bubing/util/ByteArrayDiskQueueTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeFalse;

import it.unimi.dsi.util.XorShift1024StarRandom;

import java.io.File;
Expand All @@ -31,12 +33,18 @@
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;


public class ByteArrayDiskQueueTest {

@Before
public void excludeTravis() {
assumeFalse(System.getenv("TRAVIS") != null); // skip all tests if running under Travis Continuous Integration
}

@Test
public void testSingleEnqueueDequeue() throws IOException {
final File queue = File.createTempFile(this.getClass().getName(), ".queue");
Expand Down
9 changes: 9 additions & 0 deletions test/it/unimi/di/law/bubing/util/ByteArrayDiskQueuesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,25 @@
//RELEASE-STATUS: DIST

import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeFalse;

import it.unimi.dsi.fastutil.ints.IntArrayFIFOQueue;
import it.unimi.dsi.util.XorShift1024StarRandom;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Test;

public class ByteArrayDiskQueuesTest {

@Before
public void excludeTravis() {
assumeFalse(System.getenv("TRAVIS") != null); // skip all tests if running under Travis Continuous Integration
}

public static final int LOG2_LOG_FILE_SIZE = 18;
@Test
public void testReadWriteByte() throws IOException {
Expand Down

0 comments on commit c63c9b5

Please sign in to comment.