Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit 5aa05e0

Browse files
Merge branch 'stable' into shipping
2 parents 3de1a79 + 5976741 commit 5aa05e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1027
-408
lines changed

app/build.gradle

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apply plugin: 'com.android.application'
2-
apply plugin: 'jacoco-android'
3-
// apply from: "https://raw.githubusercontent.com/monstar-lab/gradle-android-ci-check/1.2.0/ci.gradle"
2+
apply plugin: 'jacoco-everywhere'
43

54
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
65
def buildTime = new Date().format("yyyy-MM-dd'T'HH:mm'Z'", TimeZone.getTimeZone("UTC"))
@@ -18,6 +17,10 @@ android {
1817
preDexLibraries = preDexEnabled && !isTravis
1918
}
2019

20+
testOptions {
21+
unitTests.returnDefaultValues = true
22+
}
23+
2124
defaultConfig {
2225
applicationId "org.fossasia.openevent"
2326
minSdkVersion 15
@@ -80,8 +83,11 @@ dependencies {
8083
fdroidCompile 'org.apache.directory.studio:org.slf4j.api:1.7.2'
8184
fdroidCompile 'org.slf4j:slf4j-simple:1.7.14'
8285

83-
// Testing
86+
// Unit Test
8487
testCompile 'junit:junit:4.12'
88+
testCompile "org.robolectric:robolectric:3.0"
89+
90+
//Instrumentation Test
8591
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
8692
androidTestCompile('com.android.support.test:runner:0.4') {
8793
exclude group: 'com.android.support', module: 'support-annotations'

app/src/androidTest/java/org/fossasia/openevent/DatabaseTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public void testCreateDB() {
9898
public void testSpeakersList() throws Exception {
9999
DbSingleton dbSingleton = DbSingleton.getInstance();
100100

101-
assertNotNull(dbSingleton.getSpeakerList());
102-
assertTrue(dbSingleton.getSpeakerList().size() > 0);
101+
assertNotNull(dbSingleton.getSpeakerList(DbContract.Speakers.ID));
102+
assertTrue(dbSingleton.getSpeakerList(DbContract.Speakers.ID).size() > 0);
103103
}
104104

105105
public void testSessionsList() throws Exception {

app/src/androidTest/java/org/fossasia/openevent/EventInsertTest.java

-42
This file was deleted.

app/src/androidTest/java/org/fossasia/openevent/SpeakerInsertTest.java

-194
This file was deleted.

app/src/androidTest/java/org/fossasia/openevent/SponsorInsertTest.java

-75
This file was deleted.

0 commit comments

Comments
 (0)