Open cycle23 opened 8 years ago
chap1 tests currently exit immediately, ie:
:~/learn/ScalaMl$ sbt "test-only org.scalaml.app.chap1.Chap1" [info] Loading project definition from /home/cody/learn/ScalaMl/project [info] Set current project to ScalaMl (in build file:/home/cody/learn/ScalaMl/) Maximum execution time: 5000 Maximum execution time: 5000 LogBinRegressionEval2 ***** test#2 LogBinRegressionEval2 binomial logistic regression test LogBinRegressionEval ***** test#2 LogBinRegressionEval binomial logistic regression Maximum execution time: 5000 PlotterEval ***** test#3 PlotterEval Evaluation of interface to JFreeChart library Maximum execution time: 5000 ETransformEval ***** test#4 ETransformEval Evaluation eTransform monad [info] Chap1: [info] - Chapter 1 Simple binomial logistic regression *** FAILED *** (40 milliseconds) [info] A timeout occurred waiting for a future to complete. Queried 1 times, sleeping 1000 milliseconds between each query. (ScalaMlTest.scala:59) [info] org.scalatest.concurrent.Futures$FutureConcept$$anon$1: [info] ... [info] at org.scalaml.app.ScalaMlTest$class.evaluate(ScalaMlTest.scala:59) [info] at org.scalaml.app.chap1.Chap1.evaluate(Chap1.scala:34) [info] at org.scalaml.app.chap1.Chap1$$anonfun$1.apply(Chap1.scala:43) [info] at org.scalaml.app.chap1.Chap1$$anonfun$1.apply(Chap1.scala:43) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] ... [info] - Chapter 1 Simple binomial logistic regression validation *** FAILED *** (2 milliseconds) [info] A timeout occurred waiting for a future to complete. Queried 1 times, sleeping 1000 milliseconds between each query. (ScalaMlTest.scala:59) [info] org.scalatest.concurrent.Futures$FutureConcept$$anon$1: [info] ... [info] at org.scalaml.app.ScalaMlTest$class.evaluate(ScalaMlTest.scala:59) [info] at org.scalaml.app.chap1.Chap1.evaluate(Chap1.scala:34) [info] at org.scalaml.app.chap1.Chap1$$anonfun$2.apply(Chap1.scala:47) [info] at org.scalaml.app.chap1.Chap1$$anonfun$2.apply(Chap1.scala:47) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] ... [info] - Chapter 1 JFreeChart Plots *** FAILED *** (2 milliseconds) [info] A timeout occurred waiting for a future to complete. Queried 1 times, sleeping 1000 milliseconds between each query. (ScalaMlTest.scala:59) [info] org.scalatest.concurrent.Futures$FutureConcept$$anon$1: [info] ... [info] at org.scalaml.app.ScalaMlTest$class.evaluate(ScalaMlTest.scala:59) [info] at org.scalaml.app.chap1.Chap1.evaluate(Chap1.scala:34) [info] at org.scalaml.app.chap1.Chap1$$anonfun$3.apply(Chap1.scala:51) [info] at org.scalaml.app.chap1.Chap1$$anonfun$3.apply(Chap1.scala:51) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] ... [info] - Chapter 1 Min-Max *** FAILED *** (9 milliseconds) [info] A timeout occurred waiting for a future to complete. Queried 1 times, sleeping 1000 milliseconds between each query. (ScalaMlTest.scala:59) [info] org.scalatest.concurrent.Futures$FutureConcept$$anon$1: [info] ... [info] at org.scalaml.app.ScalaMlTest$class.evaluate(ScalaMlTest.scala:59) [info] at org.scalaml.app.chap1.Chap1.evaluate(Chap1.scala:34) [info] at org.scalaml.app.chap1.Chap1$$anonfun$4.apply(Chap1.scala:55) [info] at org.scalaml.app.chap1.Chap1$$anonfun$4.apply(Chap1.scala:55) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] ... ETransformEval Normalized data 0.3691275167785235,0.6575342465753424,0.5240328253223915 ETransformEval Normalized data 0.0,0.9999999999999999,0.7584994138335286 ETransformEval Normalized data 0.2348993288590604,0.0,1.0 ETransformEval Normalized data 1.0,0.6061643835616438,0.0 ETransformEval Completed PlotterEval Line plot for CSCO stock normalized volume [info] Run completed in 344 milliseconds. [info] Total number of tests run: 4 [info] Suites: completed 1, aborted 0 [info] Tests: succeeded 0, failed 4, canceled 0, ignored 0, pending 0 [info] *** 4 TESTS FAILED *** [error] Failed tests: [error] org.scalaml.app.chap1.Chap1 [error] (test:testOnly) sbt.TestsFailedException: Tests unsuccessful [error] Total time: 2 s, completed Jan 8, 2016 10:03:53 PM
(note: former description was wrong, symptom was throwing me off)
I have similar issue, can't run tests in Idea. However able to run them via mvn test or via way described in description: sbt and test-only org.scalaml.app.chap1.Chap1
mvn test
sbt
test-only org.scalaml.app.chap1.Chap1
chap1 tests currently exit immediately, ie:
(note: former description was wrong, symptom was throwing me off)