blob: 75579689c09bc624bfae8d10cfa1234ed6ca18ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package mill.integration
import ammonite.ops.{Path, pwd}
import mill.util.ScriptTestSuite
import utest._
class DocAnnotationsTests(fork: Boolean) extends ScriptTestSuite(fork) {
def workspaceSlug: String = "docannotations"
def scriptSourcePath: Path = pwd / 'integration / 'test / 'resources / workspaceSlug
val tests = Tests{
initWorkspace()
'test - {
assert(eval("inspect", "core.test.ivyDeps"))
val inheritedIvyDeps = ujson.read(meta("inspect"))("value").str
assert(
inheritedIvyDeps.contains("core.test.ivyDeps"),
inheritedIvyDeps.contains("Overriden ivyDeps Docs!!!"),
inheritedIvyDeps.contains("Any ivy dependencies you want to add to this Module"),
)
assert(eval("inspect", "core.task"))
val task = ujson.read(meta("inspect"))("value").str
assert(
task.contains("Core Task Docz!")
)
assert(eval("inspect", "inspect"))
val doc = ujson.read(meta("inspect"))("value").str
assert(
doc.contains("Displays metadata about the given task without actually running it.")
)
}
}
}
|