Skip to content

Commit

Permalink
Merge pull request #2 from SunZhaonan/master
Browse files Browse the repository at this point in the history
Exclude tests that need configurations
  • Loading branch information
SunZhaonan committed Nov 19, 2015
2 parents d5c3d87 + b83c0a4 commit 9a315a7
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 25 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ subprojects {
url 'https://repo.typesafe.com/typesafe/maven-releases/'
}
}
task excludegroup(type: Test) {
useTestNG() {
excludeGroups 'needConfig'
}

testLogging {
showStandardStreams = true
}
}

ext.externalDependency = [//"mysql" : "mysql:mysql-connector-java:5.1.36",
//"jython" : "org.python:jython-standalone:2.7.0",
Expand Down
8 changes: 0 additions & 8 deletions metadata-etl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,4 @@ jar {
}
}

test {
useTestNG() {
excludeGroups 'needConfig'
}

testLogging {
showStandardStreams = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
*/
package metadata.etl.scheduler.azkaban;

import junit.framework.TestCase;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;


/**
* Created by zechen on 8/25/15.
*/
public class AzkabanExecEtlTest extends TestCase {
public class AzkabanExecEtlTest{
AzkabanExecEtl az;

@BeforeTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
*/
package metadata.etl.scheduler.oozie;

import junit.framework.TestCase;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;


/**
* Created by zechen on 10/1/15.
*/
public class OozieExecEtlTest extends TestCase {
public class OozieExecEtlTest {
OozieExecEtl oz;

@BeforeTest
Expand Down
10 changes: 0 additions & 10 deletions wherehows-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,3 @@ dependencies {
testCompile externalDependency.testng
testCompile project(":metadata-etl")
}

test {
useTestNG() {
excludeGroups 'ignore'
}

testLogging {
showStandardStreams = true
}
}
2 changes: 1 addition & 1 deletion wherehows-common/src/test/java/DatasetPathTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void separatedDataset() {
}

@Test
public void seteratedDatasetTest2() {
public void seperatedDatasetTest2() {
String sample2 = "/.{/jobs/snusm/online/modeling/train-data/slot-1,/jobs/snusm/online/modeling/test-data/slot-1}";
List<String> result2 = DatasetPath.separatedDataset(sample2);
Assert.assertEquals(result2.get(0), sample2);
Expand Down
5 changes: 3 additions & 2 deletions wherehows-common/src/test/java/LineageCombinerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/**
* Created by zsun on 9/13/15.
*/
@Test(groups = {"wherehows.common"})
public class LineageCombinerTest {
LineageCombiner lineageCombiner;
@BeforeTest
Expand All @@ -45,7 +46,7 @@ public void setUp()
PathAnalyzer.initialize(conn);
}

@Test
@Test(groups = {"needConfig"})
public void lineageCombinerTest() {
LineageRecord lineageRecord = new LineageRecord(0, 111L, "some_job_name", 111001L);
lineageRecord.setDatasetInfo(0,
Expand Down Expand Up @@ -75,7 +76,7 @@ public void lineageCombinerTest() {
"'some_app_name','0','111','0','111001','some_job_name','0','0','some_database_name','0','/data/hadoop/someDataSet','hdfs://eat1-nertznn01.grid.linkedin.com:9000/data/hadoop/someDataSet/daily/2015/09/01/part1','2015/09/01','2015/09/02','daily','1','','source','0','0','read','0','0','0','0',NULL,NULL");
}

@Test
@Test(groups = {"needConfig"})
public void analyzeTest() {
String fullPath = "hdfs://lva1-warnn01.grid.linkedin.com:9000/jobs/siteflow/scoring/score/abook_decision/heathrowInactive/part-m-00004";
DatasetPath datasetPath = PathAnalyzer.analyze(fullPath);
Expand Down

0 comments on commit 9a315a7

Please sign in to comment.