Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Added tagging of tests
Browse files Browse the repository at this point in the history
Excluding tests that need a couchbase server from tests executed by CI.
  • Loading branch information
zmre committed Aug 19, 2015
1 parent c1b9f5b commit d6c4ceb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: scala
scala:
- 2.9.3
- 2.10.4
- 2.11.7
jdk:
- oraclejdk7
- oraclejdk8
- openjdk8
script: sbt ++$TRAVIS_SCALA_VERSION test-only -- -l com.ironcorelabs.davenport.tags.RequiresCouch

9 changes: 9 additions & 0 deletions src/test/java/com/ironcorelabs/davenport/RequiresCouch.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.ironcorelabs.davenport.tags;

import java.lang.annotation.*;
import org.scalatest.TagAnnotation;

@TagAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface RequiresCouch {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
package com.ironcorelabs.davenport

import scalaz._, Scalaz._, scalaz.concurrent.Task
import org.scalatest.{ WordSpec, Matchers, BeforeAndAfterAll, OptionValues }
import org.scalatest.{ WordSpec, Matchers, BeforeAndAfterAll, OptionValues, Tag }
import org.typelevel.scalatest._
import DisjunctionValues._
import scala.language.postfixOps
import DB._
import com.ironcorelabs.davenport.tags.RequiresCouch
// import com.ironcorelabs.davenport.tagobjects.RequiresCouch
import scala.concurrent.duration._

@RequiresCouch
class CouchConnectionSpec extends WordSpec with Matchers with BeforeAndAfterAll with DisjunctionMatchers with OptionValues {
val k = Key("test")
val k404 = Key("test404")
Expand Down
11 changes: 11 additions & 0 deletions src/test/scala/com/ironcorelabs/davenport/Tags.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// com.ironcorelabs.davenport.Tags
//
// Copyright (c) 2015 IronCore Labs
//
package com.ironcorelabs.davenport.tagobjects

import org.scalatest.Tag

object RequiresCouch extends Tag("com.ironcorelabs.davenport.tags.RequiresCouch")

0 comments on commit d6c4ceb

Please sign in to comment.