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.

No green play button beside a Go test

See original GitHub issue

OS/Web Information

  • Web Browser: Chrome
  • Local OS: macOS
  • Remote OS: Ubuntu
  • Remote Architecture: x86-64
  • code-server --version: 4.0.1 735c6da829535969ff7193c79379299e4a1cb9bc

Steps to Reproduce

  1. Install the golang.Go extension
  2. Open a go project
  3. Open a *_test.go file containing some tests

Expected

The should be a green play button beside the test, and users can run this specific test by just clicking it.

Actual

The is no green play button

Screenshot

WechatIMG469

Notes

This issue can be reproduced in VS Code: Yes

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
jsjoeiocommented, Apr 19, 2022

Nothing so far, but we welcome any help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

In Intellij, right click on a test does not present a "Run" option
My problem was that my test class wasn't public. I needed: public class MyTest { @Test public void testMethod() {. instead of:
Read more >
Right-click on a test class does not show the "run" options
Everything works properly, except that right-clicking a test class does not display the Run options (Run as JUnit / Specs2 / ScataTest etc)....
Read more >
Running tests - IDEs & Debugging - milliams.com
Now that our code is all in place, we can go ahead and run the test. ... that this is a test, there...
Read more >
Java Testing in Visual Studio Code
Run/Debug test cases. The Test Runner for Java extension will generate shortcuts (the green play button) on the left side of the class...
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
Native C/C++ code projects must be tested by using a C++ unit test framework. Build your test project. If you do not already...
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