diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-11 14:13:16 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-11 14:13:16 -0800 |
commit | 04552a462b67a6f17dfa13035334561eac4787ad (patch) | |
tree | df3151a8b448c81e524013f899ed28d8a2603dba /integration/test/src | |
parent | 82459ab66f7a1b97653991513521817c9fe9c308 (diff) | |
download | mill-04552a462b67a6f17dfa13035334561eac4787ad.tar.gz mill-04552a462b67a6f17dfa13035334561eac4787ad.tar.bz2 mill-04552a462b67a6f17dfa13035334561eac4787ad.zip |
add uPickle to our integration test suite
Diffstat (limited to 'integration/test/src')
-rw-r--r-- | integration/test/src/mill/integration/UpickleTests.scala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/integration/test/src/mill/integration/UpickleTests.scala b/integration/test/src/mill/integration/UpickleTests.scala new file mode 100644 index 00000000..7c6778ad --- /dev/null +++ b/integration/test/src/mill/integration/UpickleTests.scala @@ -0,0 +1,23 @@ +package mill.integration + +import ammonite.ops._ +import utest._ + +object UpickleTests extends IntegrationTestSuite("MILL_UPICKLE_REPO", "upickle") { + val tests = Tests{ + initWorkspace() + 'test - { + assert(eval("upickleJvm[2.11.11].test")) + assert(eval("upickleJs[2.12.4].test")) + + val jvmMeta = meta("upickleJvm[2.11.11].test.test") + assert(jvmMeta.contains("example.ExampleTests.simple")) + assert(jvmMeta.contains("upickle.MacroTests.commonCustomStructures.simpleAdt")) + + val jsMeta = meta("upickleJs[2.12.4].test.test") + assert(jsMeta .contains("example.ExampleTests.simple")) + assert(jsMeta .contains("upickle.MacroTests.commonCustomStructures.simpleAdt")) + } + + } +} |