Question

Basically what I need is an example on how to use the configMap class in a scalatest project so that I can

  1. reference the confg values in the source code
  2. use -Dparametername=value in the command line to run Scalatest using Scalatest Runner, for example scala -classpath scalatest-<version>.jar org.scalatest.tools.Runner -Dparam1=value1 -p compiled_tests

I am using Scalatest 1.6.1, the information here http://www.scalatest.org/scaladoc/1.6.1/org/scalatest/Suite.html#configMapSection is not very specific, and the examples in how to use configMap herein FixtureSuite doesn't seem to work with Scalatest-1.6.1

Thanks~

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top