Correct unit-test and modify Jenkinsfile so they run on jenkins too

This commit is contained in:
ligi 2016-04-06 02:30:23 +02:00
parent f375d2ba80
commit 439cce583e
2 changed files with 7 additions and 3 deletions

6
Jenkinsfile vendored
View file

@ -8,11 +8,15 @@ node {
stage 'lint'
node {
checkout scm
sh "./gradlew lint${flavorCombination}Release"
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/outputs/', reportFiles: 'lint-results-${flavorCombination}Release.html', reportName: 'Lint reports'])
}
stage 'test'
node {
sh "./gradlew test"
}
stage 'UITest'
node {
sh "./gradlew spoon${flavorCombination}"

View file

@ -82,10 +82,10 @@ public class ThePassClassifier {
@Test
public void testHasAtLeastOneTopic() {
public void testHasNoTopicsByDefault() {
final PassClassifier tested = new PassClassifier(new HashMap<String, String>(), getMockedPassStore());
assertThat(tested.getTopics()).containsExactly(DEFAULT_TOPIC);
assertThat(tested.getTopics()).isEmpty();
}
public Pass getPassWithId(String id) {