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.

I wrongly receive "Empty test suite" running tests from Intellij since v24

See original GitHub issue

🐛 Bug Report

I’m not able to run the tests from Javascript tests using Intellij Idea interface.

To Reproduce

  1. Run tests

Expected behavior

I expect to be able to run them from Intellij idea interface

Link to repl or repo (highly encouraged)

https://github.com/nerder/jest24-intellij-issue-repro/

  System:
    OS: macOS 10.14.3
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 11.6.0 - /usr/local/bin/node
    Yarn: 1.13.0 - ~/.yarn/bin/yarn
    npm: 6.5.0 - /usr/local/bin/npm
  npmPackages:
    jest: ^24.1.0 => 24.1.0

Notes

I’m not 100% sure this should be posted here, since can strongly related to the code of the reporter implemented by Intellj, but since was an hidden breaking change, i feel like is good to post it here as well.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

18reactions
nerdercommented, Feb 13, 2019

I’m currently on:

IntelliJ IDEA 2018.2.4 (Ultimate Edition)
Build #IU-182.4505.22, built on September 18, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.3

Anyway yes, seems to be exactly that same thing.

Workaround

Adding _JB_INTELLIJ_JASMINE_REPORTER_DISABLED=true as an env variable in when running tests works as expected.

@SimenB do you think the issue can be closed here then?

4reactions
SimenBcommented, Mar 4, 2019

If you follow the linked issues, you can see this is fixed in 2018.3 and newer - it won’t be backported

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ultimate 2018.1 Running single unit test method results in ...
Hello,. I'm trying to run a single unit test method inside of my multi-module Gradle project. I right-click on the method, select "Run....
Read more >
Class Not Found: Empty Test Suite in IntelliJ - Stack Overflow
Go to Run --> Edit Configurations and in section JUnit remove test configurations. Apply changes. After then try to run your tests. New ......
Read more >
IntelliJ IDEA. Writing Tests with Spock - YouTube
In this screencast we're going to use the Spock framework for creating and running unit tests.00:00 - Intro00:10 - Creating a Project for ......
Read more >
How to avoid "No tests were found" when using JUnit 5 with ...
Oct 24, 2018 ... Let's see what happens when we try to run this test: ... When we try to execute this test...
Read more >
Collecting Unit Test Coverage in IntelliJ IDEA - Parasoft Jtest ...
Jtest can collect coverage information for JUnit tests when a run ... for all tests listed in a test suite, you may need...
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