xenomachina
09/18/2020, 5:52 PMmitch
09/18/2020, 10:15 PMacando86
09/21/2020, 5:03 PMplugins {
id("io.kotest") version "0.1.3"
id("com.android.application")
kotlin("android")
kotlin("android.extensions")
}
in my project (single module for now, it's just to experiment with it), but when running gradle kotest
i get
Could not determine the dependencies of task ':app:kotest'.
> Task with path 'classes' not found in project ':app'.
gradle test
(with java5 runner) works just fine.rpillay
09/22/2020, 4:29 AMwhy
09/22/2020, 12:26 PMimplementation("io.kotest:kotest-property:4.2.5")
to my commonTest sourceSet, I get this error when I gradle sync : Could not resolve io.kotestkotest property4.2.5.
the goal is to add Kotest to my multi-platform common module (commonTest)Animesh Sahu
09/24/2020, 4:00 AMJorrit
09/24/2020, 11:23 AMSlackbot
09/24/2020, 2:13 PMalexfacciorusso
09/25/2020, 11:25 AMBehaviorSpec
. Since I need to perform some actions before the spec is initialised by using a custom Listener, but it doesn’t seem to work. Here’s an example:
class DashboardViewModelTest : BehaviorSpec({
listeners(
MyListener
)
// [I need a listener (or multiple listeners) to be executed immediately here]
val myClassUnderTest = MyClassUnderTest(...)
Given("Something") {...}
Given("Something else") {...}
// [And then I need the same listener to de-initialise my stuff here]
})
How can I have something like that?
Of course if I create a wrapping Given, for example, the listeners actually get triggered, but I was trying to avoid a further nesting level with something like Given(“My class initialised”), it seems redundant to me.mitch
09/26/2020, 9:04 PMAnimesh Sahu
09/27/2020, 2:00 PMSourabh Rawat
09/27/2020, 8:40 PMkopper
09/30/2020, 11:08 PMRun -> All tests (kotest)
the Kotest plugin runs all the tests defined in that package ignoring the specific directory I am in (in my case src/test/kotlin whereas we have also integration tests in src/it/kotlin). What is the best way for me to create a test suite consisting of only unit tests excluding integration tests?Javier
10/02/2020, 10:02 AMKavita
10/02/2020, 5:46 PMMockWebSerever
& Awaitility
to handle API mocking & async operation.
The .gradle
file also has Android Orchestrator & clearPackageData declared.
Still, the issue persists.
Can someone help me to fix this issue?
My gradle, plugin & java version:Umalog
10/03/2020, 11:06 PMAhmed Mourad
10/04/2020, 7:42 PM@Config(sdk = [Build.VERSION_CODES.O_MR1])
@RobolectricTest
class SomeTest : DescribeSpec({ ... })
why
10/04/2020, 9:46 PMlistOf<Int>(1) shouldBe listOf<Int>()
alexfacciorusso
10/05/2020, 10:51 AM4.0.1
).
I’ve created a PR to re-include the plugin in the project artefacts generation, unless there was a reason why it wasn’t included anymore (@sam to confirm).
The PR is this one, it includes also some further fixes and optimisations in the Gradle file.
After that, I will try to reproduce the bugs about Robolectric itself, although from some comments I understand it might be not as immediate to fix them.alexfacciorusso
10/06/2020, 5:45 PMJim
10/07/2020, 5:20 PMval tests: List<TestCase>
suspend fun executeAsync(testCase: TestCase...): Deferred<TestResult>...
fun doIt() = tests.map { executeAsync(it) }.awaitAll() // or just start them instead
If my failsafe retries were kotlin's delay
then my other tests would run whatever they can instead of waiting for each test case to complete serially, at least that's the way I understand it.Gilles Barbier
10/08/2020, 11:03 AMsam
10/08/2020, 2:45 PMPeter
10/08/2020, 4:59 PMphil-t
10/09/2020, 11:56 AMchristophsturm
10/09/2020, 1:13 PMJim
10/09/2020, 4:47 PM"danger will robinson".config(enabledIf = disableDangerOnWindows) {
// test here
}
sam
10/11/2020, 7:47 PMsam
10/11/2020, 7:48 PMJim
10/12/2020, 10:24 PMEither
type, and I'd really like to do something like
val actual: <Unit, Errorish> = doThing()
withClue(lazy { "doThing error: ${actual.errorOrNull()?.message}" }) {
actual.isOk shouldBe true
}
Is this possible and I'm just not seeing a way in the current matchers? Basically I don't want to try to get the error message unless there's an error in my value