読者です 読者をやめる 読者になる 読者になる

by shigemk2

当面は技術的なことしか書かない

ScalaTestのsbtコマンド

Scala

ScalaTest

  • testでテストが実行。
  • testQuickでテストの結果が簡略的に表示される。
> test
[info] CalcServiceTest:
[info] CalcServiceの
[info]   addのテスト
[info]   - 1 plus 1 == 2
[info]   - 5 plus 5 == 10
[info]   multiplyのテスト
[info]   - 1 multiply 1 == 1
[info]   - 5 multiply 5 == 25
[info] Run completed in 205 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 1 s, completed 2015/03/30 13:29:20
> testQuick
[info] Run completed in 34 milliseconds.
[info] Total number of tests run: 0
[info] Suites: completed 0, aborted 0
[info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[info] No tests to run for test:testQuick
[success] Total time: 0 s, completed 2015/03/30 13:29:29