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.

Misleading status message when using `fit` or `fdescribe`

See original GitHub issue

The output states to have run all available tests, but we were running into “silently failing” tests as no logs are present to explicitly state the number of tests run.

This is the output we have when running all our tests without any fit or fdescribe specs:

Executed 473 of 473 SUCCESS (0.443 secs / 0 secs)

Now, using a single fit on one of the specs:

Executed 473 of 473 SUCCESS (0.454 secs / 0 secs)

If I let the fited test fail explicitly, this is the output

Executed 473 of 473 (1 FAILED) (0.397 secs / 0 secs)

Having fdescribe causes the very same output as above (Both scenarios, with and without failing tests).

We would except an output similar to when xit or xdescribe is present: (with 1 xit in place)

Executed 472 of 473 (skipped 1) SUCCESS (0.49 secs / 0 secs)

jasmine@3.1.0
jasmine-core@3.1.0
jasmin-local-storage@1.0.0
karma-jasmine@1.1.1

Hit me up if there’s additional information required 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
PhilippMeissnercommented, Apr 26, 2018

Please do not “post to follow”. Click the Subscribe button on the right sidebar instead.

Maybe people keep posting and add “noise” so that @dignifiedquire or other users with write-access do read and bump the version 😃

10reactions
the-spykecommented, Apr 12, 2018

@johnjbarton Any ETA on a release? This bug is stopping us from using Jasmine 3, and the fix is already merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xdescribe vs fdescribe in jasmine - angular - Stack Overflow
If it exists, jasmine will run only fdescribe spec and ignore other type ... Beside those two, Jasmine also has fit and xit...
Read more >
What Should I Use Instead Of Fit And Fdescribe In Jasmine 3
Misleading status message when using fit or fdescribe karma-runner/karma-jasmine#202. Why? Focused tests can be great during local development because they ...
Read more >
Ginkgo test suite - GitHub Pages
In reality, Ginkgo is a general purpose testing framework in active use across ... This simply strips off any F s off of...
Read more >
Globals - Jest
In your test files, Jest puts each of these methods and objects into the global environment. You don't have to require or import...
Read more >
Running specific test cases in Jasmine or Mocha - Wisdom Geek
I wanted to run a single test case using jasmine. ... You can use fit() or fdescribe() instead of it() and fdescribe() to...
Read more >

github_iconTop Related Medium Post

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