I am using scalatest to run some tests. Now every time I run a test the test results get stored in target/test-reports overwriting the previous test results. I want to store the results in a new folder with timestamp in the folder name. Like in target/test-reports/dd-mm-yy-hhmmss folder and keep the old results intact. How to get the time stamp in build.sbt and use it to make the folder name.
Currently my build.sbt looks like this :
testOptions in Test ++= Seq(Tests.Argument(TestFrameworks.ScalaTest, "-o"), Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/test-reports"))
Please suggest how to get the timestamp and use it in folder name.