Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude tests that need configurations #2

Merged
merged 1 commit into from
Nov 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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