# How to run a test case?
Enter sbt shell, navigate to the module.
To run all test-suites in the module, run command
testOnly[LotteryDomain] testOnly [info] Compiling 1 Scala source to ... [info] Done compiling. [info] AddParticipantCommandTestSuite: [info] - add a participant [info] - add participant with same name [info] CreateCommandTestSuite: [info] - create first lottery [info] - create duplicate lotteryTo run test-cases in a specific TestSuite, run command
testOnly <TestSuiteClass>[LotteryDomain] testOnly com.metastay.lotterydomain.commandset.lottery.CreateCommandTestSuite [info] CreateCommandTestSuite: [info] - create first lottery [info] - create duplicate lottery ...Alternately use the widlcard character
*instead of the fully qualified class path:[LotteryDomain] testOnly *CreateCommand* [info] CreateCommandTestSuite: [info] - create first lottery [info] - create duplicate lotteryTo run test-cases with a specific tag use
testOnly -- -n <tag>[LotteryDomain] testOnly *CreateCommandTestSuite -- -n create [info] CreateCommandTestSuite: [info] - create first lottery