项目作者: sugakandrey

项目描述 :
Mutation testing for Scala
高级语言: Scala
项目地址: git://github.com/sugakandrey/scalamu.git
创建时间: 2017-03-26T22:33:01Z
项目社区:https://github.com/sugakandrey/scalamu

开源协议:GNU General Public License v3.0

下载


Maven metadata URI

Scalamu

Scalamu is a mutation testing engine for Scala.

Getting started

CLI quick start

Although the preferred method is to use SBT/IntelliJ plugin scalamu can be run
from the command line too. Simply download org.scalamu.entry-point jar
and launch it from the command line as follows:

  1. java -jar %path to scalamu jar% \
  2. %optional configuration parameters%
  3. %report directory% \
  4. %directories containing source files% \
  5. %directories containing test classes% \

For an in-depth explanation on configuration parameters see usage info below.

  1. scalamu
  2. Usage: scalamu-cli [options] <reportDir> <sourceDirs> <testClassDirs>
  3. <reportDir> directory to create reports in
  4. <sourceDirs> list of source directories
  5. <testClassDirs> list of test class directories
  6. --cp <value> list of "compile" classpath elements
  7. --tcp <value> list of "test" classpath elements
  8. --jvmOpts <value> arguments for forked JVM running tests
  9. --mutations <value> set of active mutators
  10. --includeSource <regex1>,<regex2>..
  11. only mutate certain source files
  12. --includeTestClasses <regex1>,<regex2>..
  13. only run certain test classes
  14. --testOptions framework1=optionString1, framework2=optionString2...
  15. per framework test runner options
  16. --scalacOptions <value> options to be passed to scalac
  17. --timeoutFactor <value> factor to apply to normal test duration before considering being stuck in a loop
  18. --timeoutConst <value> flat amount of additional time for mutation analysis test runs
  19. --parallelism <value> number of runners used to perform mutation analysis
  20. --verbose be verbose about every step
  21. --recompileOnly do not perform mutation analysis (internal testing option)

SBT quick start

See sbt-scalamu

IntelliJ quick start

IntelliJ integration is currently in the works.

Credits

Scalamu was hugely inspired by PIT an amazing
mutation testing system for JVM.