how to create new suite dynamic

3 views
Skip to first unread message

seven...@gmail.com

unread,
Aug 16, 2016, 6:36:23 AM8/16/16
to scalatest-users
i can add new testcase by this code


val suite
=new FunSuite
 suite
.registerTest("demo2"){
 println
("demo2")
 
assert(1==1)
 
}
 suite
.name="NewDemo"

 suite
.registerTest("demo3"){
 println
("demo3")
 
}
 suite
.name="OLDDemo"

 suite
.execute
}



but how can i create new suite dynamic?
i want create 100 suites and more testcases dynamic 


Reply all
Reply to author
Forward
0 new messages