diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-12-12 16:56:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 16:56:02 -0800 |
commit | 9ba4cb69331386dfde9bac69dc2d5b22401face3 (patch) | |
tree | 120349e8015ae5717d36bd44209cde6ff9543518 /integration/test/src/DocAnnotationsTests.scala | |
parent | ea7fceb6e56f53bde3517586dfc57e10a605a524 (diff) | |
download | mill-9ba4cb69331386dfde9bac69dc2d5b22401face3.tar.gz mill-9ba4cb69331386dfde9bac69dc2d5b22401face3.tar.bz2 mill-9ba4cb69331386dfde9bac69dc2d5b22401face3.zip |
collapse boilerplate folder structure within src/ folders (#505)
* collapse boilerplate folder structure within src/ folders
* .
Diffstat (limited to 'integration/test/src/DocAnnotationsTests.scala')
-rw-r--r-- | integration/test/src/DocAnnotationsTests.scala | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/integration/test/src/DocAnnotationsTests.scala b/integration/test/src/DocAnnotationsTests.scala new file mode 100644 index 00000000..4d7ef11b --- /dev/null +++ b/integration/test/src/DocAnnotationsTests.scala @@ -0,0 +1,33 @@ +package mill.integration + +import mill.util.ScriptTestSuite +import utest._ + +class DocAnnotationsTests(fork: Boolean) extends ScriptTestSuite(fork) { + def workspaceSlug: String = "docannotations" + def scriptSourcePath: os.Path = os.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.") + ) + } + } +} |