question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Focus not working in FunSpecs

See original GitHub issue

This is not working for FunSpecs:

internal class SomeTest : FunSpec() {
    init {
        context("f:my test") {
            test("something") { ... }
        }
    }
}

According to the documentation, wouldn’t context be considered a top-level scope and thus should work? Or is this a special case?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Apr 26, 2020

Thanks for this bug report. It is now fixed in master and will be included in 4.0.5.

0reactions
ps-fengcommented, Apr 11, 2020

I am on 4.0.2. I’ve just tested this and it doesn’t work:

internal class BlaBlaTest : FunSpec() {

    init {
        context("f:some test") {
            test("should run") {
                1 shouldBe 1
            }
            test("should run 2") {
                2 shouldBe 1
            }
        }
        context("other test") {
            test("should never run") {
                3 shouldBe 4
            }
        }
    }
}

image image

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery - $.focus() not working - Stack Overflow
should make the input focused (active). I can't seem to get this working. Even in the console on this site, I'm trying it...
Read more >
org.scalatest.FunSpec
Although the create-fixture, fixture-trait, and OneInstancePerTest approaches take care of setting up a fixture before each test, they don't address the problem ......
Read more >
Introduction to Kotest | Baeldung on Kotlin
In this tutorial, we'll focus on running the tests only on the JVM ... Sometimes, we need to test functions that do not...
Read more >
Use com.sksamuel.kotest.engine.spec.focus ... - LambdaTest
Best Kotest code snippet using com.sksamuel.kotest.engine.spec.focus. ... FunSpec 4 5class FunSpecContextFocusTest : FunSpec() { 6 init { 7 context("f:my ...
Read more >
HTMLElement.focus() - Web APIs | MDN
blur to remove the focus from an element. document.activeElement to know which is the currently focused element. Found a problem with this page?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found