Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add JP's tests to suites

  • Loading branch information...
commit ac0ac4fccbeb05f5f167dec9257080bef195527a 1 parent 6e8e6d5
@JPMoresmau authored
View
7 net.sf.eclipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/test/AllTests_Suite.java
@@ -3,10 +3,14 @@
// version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
package net.sf.eclipsefp.haskell.core.test;
+import junit.framework.JUnit4TestAdapter;
import junit.framework.Test;
import junit.framework.TestSuite;
+import net.sf.eclipsefp.haskell.core.cabalmodel.CabalModelTest;
+import net.sf.eclipsefp.haskell.core.cabalmodel.JSONDescriptionHelperTest;
import net.sf.eclipsefp.haskell.core.compiler.ListenableCompilerDecorator_Test;
import net.sf.eclipsefp.haskell.core.internal.util.MultiplexedWriter_Test;
+import net.sf.eclipsefp.haskell.core.parser.ParserUtilsTest;
import net.sf.eclipsefp.haskell.core.project.ImportLibrariesList_Test;
import net.sf.eclipsefp.haskell.core.util.ProcessRunner_Test;
@@ -18,6 +22,9 @@ public static Test suite() {
suite.addTestSuite( ListenableCompilerDecorator_Test.class );
suite.addTestSuite( MultiplexedWriter_Test.class );
suite.addTestSuite( ProcessRunner_Test.class );
+ suite.addTestSuite( CabalModelTest.class );
+ suite.addTestSuite( ParserUtilsTest.class );
+ suite.addTest( new JUnit4TestAdapter(JSONDescriptionHelperTest.class) );
return suite;
}
View
5 net.sf.eclipsefp.haskell.ghccompiler.test/src/net/sf/eclipsefp/haskell/ghccompiler/test/AllTests_Suite.java
@@ -2,11 +2,16 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+import net.sf.eclipsefp.haskell.ghccompiler.test.core.GhcParameterTest;
+import net.sf.eclipsefp.haskell.ghccompiler.test.core.UtilTest;
+
public class AllTests_Suite {
public static Test suite() {
TestSuite suite = new TestSuite();
+ suite.addTestSuite( GhcParameterTest.class );
+ suite.addTestSuite( UtilTest.class );
return suite;
}
}
View
1  net.sf.eclipsefp.haskell.scion.client.test/META-INF/MANIFEST.MF
@@ -9,3 +9,4 @@ Require-Bundle: org.eclipse.ui,
org.junit4
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: eclipsefp.sourceforge.net
+Export-Package: net.sf.eclipsefp.haskell.scion.client.test
View
BIN  ....eclipsefp.haskell.scion.client.test/bin/net/sf/eclipsefp/haskell/scion/client/test/AllTests_Suite.class
Binary file not shown
View
18 ...f.eclipsefp.haskell.scion.client.test/src/net/sf/eclipsefp/haskell/scion/client/test/AllTests_Suite.java
@@ -0,0 +1,18 @@
+package net.sf.eclipsefp.haskell.scion.client.test;
+
+import junit.framework.JUnit4TestAdapter;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ *
+ * @author JP Moresmau
+ *
+ */
+public class AllTests_Suite {
+ public static Test suite() {
+ TestSuite suite = new TestSuite();
+ suite.addTest(new JUnit4TestAdapter(JSONNavigatorTest.class ));
+ return suite;
+ }
+}
View
3  net.sf.eclipsefp.haskell.test/META-INF/MANIFEST.MF
@@ -7,6 +7,7 @@ Require-Bundle: net.sf.eclipsefp.haskell.core.test,
org.junit4,
net.sf.eclipsefp.haskell.debug.ui.test;bundle-version="1.106.0",
net.sf.eclipsefp.haskell.ghccompiler.test;bundle-version="1.106.0",
- net.sf.eclipsefp.haskell.ui.test;bundle-version="1.106.0"
+ net.sf.eclipsefp.haskell.ui.test;bundle-version="1.106.0",
+ net.sf.eclipsefp.haskell.scion.client.test;bundle-version="1.112.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
View
1  net.sf.eclipsefp.haskell.test/src/net/sf/eclipsefp/test/AllTests_Suite.java
@@ -10,6 +10,7 @@ public static Test suite() {
suite.addTest(net.sf.eclipsefp.haskell.core.test.AllTests_Suite.suite());
suite.addTest(net.sf.eclipsefp.haskell.ghccompiler.test.AllTests_Suite.suite());
suite.addTest(net.sf.eclipsefp.haskell.ui.test.AllTests_Suite.suite());
+ suite.addTest(net.sf.eclipsefp.haskell.scion.client.test.AllTests_Suite.suite());
return suite;
}
View
4 net.sf.eclipsefp.haskell.ui.test/src/net/sf/eclipsefp/haskell/ui/internal/util/FileUtilTest.java
@@ -2,8 +2,8 @@
import java.io.File;
import java.io.IOException;
-import net.sf.eclipsefp.haskell.core.util.FileUtil;
import junit.framework.TestCase;
+import net.sf.eclipsefp.haskell.core.util.FileUtil;
public class FileUtilTest extends TestCase{
@@ -18,6 +18,7 @@ public void testDeleteRecursively(){
File tmp=File.createTempFile( "filetogetdir", ".tmp" );
File tmpDir=tmp.getParentFile();
File tmpDir1=new File(tmpDir,"tmpDir");
+ tmpDir1.mkdir();
File tmpFile1=File.createTempFile("tmpFile1",".tmp",tmpDir1);
File tmpDir11=new File(tmpDir1,"tmpDir11");
tmpDir11.mkdirs();
@@ -42,6 +43,7 @@ public void testDeleteRecursively(){
assertFalse(tmpDir12.exists());
assertFalse(tmpFile121.exists());
} catch (IOException ioe){
+ ioe.printStackTrace();
fail(ioe.getLocalizedMessage());
}
View
2  net.sf.eclipsefp.haskell.ui.test/src/net/sf/eclipsefp/haskell/ui/test/AllTests_Suite.java
@@ -7,6 +7,7 @@
import junit.framework.TestSuite;
import net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellConfiguration_Test;
import net.sf.eclipsefp.haskell.ui.internal.editors.haskell.text.HaskellCharacterPairMatcher_Test;
+import net.sf.eclipsefp.haskell.ui.internal.util.FileUtilTest;
/** collects all non-PDE test cases in this project.
*
@@ -18,6 +19,7 @@ public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite( HaskellCharacterPairMatcher_Test.class );
suite.addTestSuite( HaskellConfiguration_Test.class );
+ suite.addTestSuite( FileUtilTest.class );
return suite;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.