Skip to content

Commit

Permalink
Ignore leaky tests + force test to run sequentially in same order
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Jun 9, 2017
1 parent ee62d9a commit 30639d2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
else:
raise NotImplementedError('Type of identifier unknown')
except IncompleteFragments as e:
output_table = e.fragments
flow_variables['warning_message'] = e.message
logging.warning("Following identifier(s) could not be found: " + ",".join(e.absent_identifiers))
output_table = e.fragments
else:
if id_type == 'pdb':
output_table = fragments_by_pdb_codes(queries, fragments_db_filename)
Expand Down
4 changes: 3 additions & 1 deletion tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@
<version>${tycho.version}</version>
<configuration>
<argLine>${tycho.testArgLine} ${tycho.test.jvmArgs}</argLine>
<threadCount>1</threadCount>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<!-- kill test JVM if tests take more than 1 minute (60 seconds) to finish -->
<surefire.timeout>60</surefire.timeout>
<surefire.timeout>65</surefire.timeout>
</properties>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
Expand Down Expand Up @@ -73,6 +74,7 @@ public void test_invalidsettings() throws IOException, InvalidSettingsException,
runTestWorkflow("src/knime/kripo-fragment-information-test-invalidsettings");
}

@Ignore("Leaks log messages from Python to other tests sometimes")
@Test
public void test_notfound() throws IOException, InvalidSettingsException, CanceledExecutionException,
UnsupportedWorkflowVersionException, LockFailedException, InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
Expand Down Expand Up @@ -75,6 +76,7 @@ public void test_invalidsettings() throws IOException, InvalidSettingsException,
runTestWorkflow(wfDir);
}

@Ignore("Leaks log messages from Python to other tests sometimes")
@Test
public void test_similarFragments_notfound() throws IOException, InvalidSettingsException,
CanceledExecutionException, UnsupportedWorkflowVersionException, LockFailedException, InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
Expand Down Expand Up @@ -55,10 +56,10 @@ public static void cleanupDatafiles() {
pharmacophoresdb.delete();
}

// TODO implement workflow
// @Test
// public void test_default() throws IOException, InvalidSettingsException, CanceledExecutionException,
// UnsupportedWorkflowVersionException, LockFailedException, InterruptedException {
// runTestWorkflow("src/knime/kripo-python-pharmacophores-test-default");
// }
@Ignore("implement node and workflow")
@Test
public void test_default() throws IOException, InvalidSettingsException, CanceledExecutionException,
UnsupportedWorkflowVersionException, LockFailedException, InterruptedException {
runTestWorkflow("src/knime/kripo-python-pharmacophores-test-default");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public void test_fragmentInformation() throws IOException, InvalidSettingsExcept
@Test
public void test_pharmacophores() throws IOException, InvalidSettingsException, CanceledExecutionException,
UnsupportedWorkflowVersionException, LockFailedException, InterruptedException {
TestrunConfiguration runConfiguration = new TestrunConfiguration();
File workflowDir = new File("src/knime/kripo-java-pharmacophore-test");
runner.runTestWorkflow(workflowDir);
}
Expand Down

0 comments on commit 30639d2

Please sign in to comment.