Merge pull request #5346 from eed3si9n/wip/nightly2

some adjustments to the scripted tests
This commit is contained in:
eugene yokota 2019-12-30 07:24:13 -05:00 committed by GitHub
commit 214ae747a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,3 @@
$ delete output
> run
$ exists output
> publishLocal
$ exec java -jar coursier launch io.get-coursier.test:sbt-coursier-exclude-dependencies_2.11:0.1.0-SNAPSHOT

View File

@ -9,8 +9,12 @@ lazy val root = (project in file("."))
val includeKeys = (includeLintKeys in Global).value map { _.scopedKey.key.label }
val excludeKeys = (excludeLintKeys in Global).value map { _.scopedKey.key.label }
val result = sbt.internal.LintUnused.lintUnused(state, includeKeys, excludeKeys)
assert(result.size == 1)
assert(result(0)._2 == "ThisBuild / doc / scalacOptions", result(0)._2)
result foreach {
case (_, "ThisBuild / doc / scalacOptions", _) => ()
case (_, "app / globalAutoPluginSetting", _) => ()
case (_, "root / globalAutoPluginSetting", _) => ()
case (_, str, _) => sys.error(str)
}
}
)