fix scripted tests

This commit is contained in:
Johannes Rudolph 2015-11-26 13:26:21 +01:00
parent 7b7f4d983f
commit 90923e9be5
9 changed files with 12 additions and 22 deletions

View File

@ -0,0 +1 @@
sbt.version=0.13.6

View File

@ -1,7 +1,3 @@
import net.virtualvoid.sbt.graph.Plugin._
graphSettings
scalaVersion := "2.9.2"
libraryDependencies ++= Seq(

View File

@ -0,0 +1 @@
../../build.properties

View File

@ -1,7 +1,3 @@
import net.virtualvoid.sbt.graph.Plugin._
graphSettings
scalaVersion := "2.9.1"
libraryDependencies ++= Seq(

View File

@ -0,0 +1 @@
../../build.properties

View File

@ -1,7 +1,3 @@
import net.virtualvoid.sbt.graph.Plugin._
graphSettings
scalaVersion := "2.9.2"
libraryDependencies +=

View File

@ -0,0 +1 @@
../../build.properties

View File

@ -1,13 +1,14 @@
import collection.mutable.ListBuffer
import net.virtualvoid.sbt.graph.Plugin._
import sbt._
import sbt.Keys._
import net.virtualvoid.sbt.graph.DependencyGraphKeys._
object Build extends sbt.Build {
def defaultSettings =
seq(scalaVersion := "2.9.2")
Seq(scalaVersion := "2.9.2")
lazy val justATransiviteDependencyEndpointProject =
Project("just-a-transitive-dependency-endpoint", file("a"))
@ -24,23 +25,19 @@ object Build extends sbt.Build {
lazy val test_project =
Project("test-dot-file-generation", file("d"))
.settings(graphSettings: _*)
.settings(defaultSettings: _*)
.settings(
TaskKey[Unit]("check") <<= (dependencyDot in Compile) map { (dotFile) =>
val expectedGraph =
"""digraph "dependency-graph" {
| graph[rankdir="LR"]
| node [
| shape="record"
| ]
| edge [
| arrowtail="none"
| ]
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT"[label=<test-dot-file-generation<BR/><B>test-dot-file-generation_2.9.2</B><BR/>0.1-SNAPSHOT>]
| "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT"[label=<just-a-transitive-dependency<BR/><B>just-a-transitive-dependency_2.9.2</B><BR/>0.1-SNAPSHOT>]
| "just-a-transitive-dependency-endpoint:just-a-transitive-dependency-endpoint_2.9.2:0.1-SNAPSHOT"[label=<just-a-transitive-dependency-endpoint<BR/><B>just-a-transitive-dependency-endpoint_2.9.2</B><BR/>0.1-SNAPSHOT>]
| "just-a-dependency:just-a-dependency_2.9.2:0.1-SNAPSHOT"[label=<just-a-dependency<BR/><B>just-a-dependency_2.9.2</B><BR/>0.1-SNAPSHOT>]
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT"[labelType="html" label="test-dot-file-generation<BR/><B>test-dot-file-generation_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
| "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT"[labelType="html" label="just-a-transitive-dependency<BR/><B>just-a-transitive-dependency_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
| "just-a-transitive-dependency-endpoint:just-a-transitive-dependency-endpoint_2.9.2:0.1-SNAPSHOT"[labelType="html" label="just-a-transitive-dependency-endpoint<BR/><B>just-a-transitive-dependency-endpoint_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
| "just-a-dependency:just-a-dependency_2.9.2:0.1-SNAPSHOT"[labelType="html" label="just-a-dependency<BR/><B>just-a-dependency_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT" -> "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT"
| "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT" -> "just-a-transitive-dependency-endpoint:just-a-transitive-dependency-endpoint_2.9.2:0.1-SNAPSHOT"
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT" -> "just-a-dependency:just-a-dependency_2.9.2:0.1-SNAPSHOT"

View File

@ -0,0 +1 @@
../../build.properties