Grigory Derzhavets
06/18/2020, 9:51 AMbeforeSpec/beforeTest
methods. As I see right now, the test_executor firstly runs these and then filters out tests. Does anybody know whether it is possible in KotlinTest? Pleasesam
06/18/2020, 12:19 PMGrigory Derzhavets
06/18/2020, 12:39 PMbeforeSpec
will be ran twice - for Class_A, which is correct, and for Class_B, which seems like is incorrect, since execution of tests in Class_B won't happen due to tag filtersam
06/18/2020, 12:46 PMGrigory Derzhavets
06/18/2020, 12:51 PM-Dkotlintest.tags.include
?sam
06/18/2020, 12:52 PMGrigory Derzhavets
06/18/2020, 12:54 PMsam
06/18/2020, 12:59 PMGrigory Derzhavets
06/18/2020, 1:02 PM4.1.0.RC2is it stable enough?
sam
06/18/2020, 1:52 PMGrigory Derzhavets
06/18/2020, 1:54 PMsam
06/19/2020, 1:27 PMGrigory Derzhavets
06/19/2020, 1:50 PMsam
06/19/2020, 1:50 PMGrigory Derzhavets
06/22/2020, 8:47 AMsam
06/23/2020, 1:14 PMGrigory Derzhavets
06/23/2020, 1:24 PM-Dkotest.tags.include=
parameter has been changed after I upgraded to 4.1.0 final. I have a base test that has a base tag for all the tests.
override fun tags(): Set<Tag> = setOf(MyTag)
Before the upgrade I could execute the tests with -Dkotest.tags.include=MyTag
and the tests were executed. Now they are not executed and the test runner doesn't find any tests.
It only finds a test if I use @Tags("MyTest") annotation.
So looks like this parameter only works with annotations now and doesn't work when you create an io.kotest.core.Tag objects and override them in your test specs. Is this expected behaviour?sam
06/30/2020, 12:57 PMGrigory Derzhavets
06/30/2020, 1:07 PMsam
07/08/2020, 1:25 PM/**
* Any tags added here will be in applied to all [TestCase]s defined
* in this [Spec] in addition to any defined on the individual
* tests themselves.
*/
fun tags(): Set<Tag> = emptySet()
So does the system need to inspect all the root tests, and skip the spec only if none of them are active.Grigory Derzhavets
07/13/2020, 11:22 AMsam
07/13/2020, 2:01 PMGrigory Derzhavets
07/13/2020, 2:01 PMsam
07/13/2020, 2:02 PMGrigory Derzhavets
07/13/2020, 2:04 PMsam
07/13/2020, 2:08 PMGrigory Derzhavets
07/13/2020, 2:10 PMsam
07/13/2020, 2:11 PMGrigory Derzhavets
07/13/2020, 2:14 PMsam
07/13/2020, 2:15 PMGrigory Derzhavets
07/13/2020, 2:20 PMsam
07/13/2020, 2:21 PMGrigory Derzhavets
07/13/2020, 3:09 PMMight be reasonable to always run prepareSpecyou mean that filter out test by tag in prepareSpec?
sam
07/13/2020, 3:17 PMGrigory Derzhavets
07/13/2020, 6:17 PMoverride fun tags(): Set<Tag> = setOf(MyTag)
and then execute all the tests, inherited from BaseTest ?sam
07/13/2020, 6:51 PMGrigory Derzhavets
07/14/2020, 8:43 AM-Dkotest.tags.include=MyTag
and my tests derived from BaseTest (with tags overriden) were executed.
Now they are not executed and I am kinda confusedkotest.tags.include -> MyTag
was in system propertiessam
07/17/2020, 12:23 PMGrigory Derzhavets
07/20/2020, 6:41 AM