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? PleaseGrigory Derzhavets
06/18/2020, 10:44 AMsam
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 PMsam
06/18/2020, 12:46 PMsam
06/18/2020, 12:47 PMGrigory Derzhavets
06/18/2020, 12:51 PM-Dkotlintest.tags.include
?Grigory Derzhavets
06/18/2020, 12:51 PMsam
06/18/2020, 12:52 PMsam
06/18/2020, 12:52 PMsam
06/18/2020, 12:53 PMGrigory Derzhavets
06/18/2020, 12:54 PMGrigory Derzhavets
06/18/2020, 12:54 PMGrigory Derzhavets
06/18/2020, 12:54 PMsam
06/18/2020, 12:59 PMsam
06/18/2020, 12:59 PMGrigory Derzhavets
06/18/2020, 1:02 PMGrigory Derzhavets
06/18/2020, 1:03 PM4.1.0.RC2is it stable enough?
sam
06/18/2020, 1:52 PMsam
06/18/2020, 1:53 PMGrigory Derzhavets
06/18/2020, 1:54 PMGrigory Derzhavets
06/19/2020, 12:40 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 PMGrigory Derzhavets
06/29/2020, 7:42 AM-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?Grigory Derzhavets
06/30/2020, 6:27 AMsam
06/30/2020, 12:57 PMsam
06/30/2020, 12:59 PMGrigory Derzhavets
06/30/2020, 1:07 PMGrigory Derzhavets
07/08/2020, 1:24 PMsam
07/08/2020, 1:25 PMsam
07/12/2020, 7:57 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 PMsam
07/13/2020, 2:03 PMGrigory Derzhavets
07/13/2020, 2:04 PMGrigory Derzhavets
07/13/2020, 2:04 PMsam
07/13/2020, 2:08 PMsam
07/13/2020, 2:08 PMsam
07/13/2020, 2:08 PMsam
07/13/2020, 2:09 PMsam
07/13/2020, 2:09 PMsam
07/13/2020, 2:10 PMGrigory Derzhavets
07/13/2020, 2:10 PMGrigory Derzhavets
07/13/2020, 2:11 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 PMGrigory Derzhavets
07/13/2020, 2:21 PMsam
07/13/2020, 2:21 PMsam
07/13/2020, 2:21 PMsam
07/13/2020, 2:22 PMGrigory Derzhavets
07/13/2020, 3:09 PMMight be reasonable to always run prepareSpecyou mean that filter out test by tag in prepareSpec?
Grigory Derzhavets
07/13/2020, 3:17 PMsam
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 confusedGrigory Derzhavets
07/14/2020, 10:34 AMGrigory Derzhavets
07/14/2020, 10:52 AMGrigory Derzhavets
07/14/2020, 10:52 AMkotest.tags.include -> MyTag
was in system propertiesGrigory Derzhavets
07/15/2020, 10:40 AMsam
07/17/2020, 12:23 PMsam
07/18/2020, 3:52 PMGrigory Derzhavets
07/20/2020, 6:41 AM