Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TestNG class level annotations #1133

Open
andywarren86 opened this issue Jan 31, 2021 · 1 comment
Open

Support TestNG class level annotations #1133

andywarren86 opened this issue Jan 31, 2021 · 1 comment
Labels

Comments

@andywarren86
Copy link

Consider adding support for TestNG class level annotations.

https://testng.org/doc/documentation-main.html#class-level

With TestNG the @Test annotation can be placed on a class instead of the method. In this case all public void methods are considered tests even if they are not annotated.

Example:

@Test
public class TestNGTest {

  public void test1() {
    System.out.println("Test 1");
  }

  public void test2() {
      System.out.println("Test 2");
  }

  private void privateMethod() {
    System.out.println( "Not a test" );
  }
}

Currently there does not appear to be any way to run a test unless it is explicitly annotated. Right clicking and selecting Run just pops up an alert with No tests in file: .... No code lens appear at either class or method level. No tests appear under the class in the Test panel.

@jdneo jdneo added the bug label Feb 1, 2021
@CarlPer
Copy link

CarlPer commented Sep 23, 2021

This issue is the only reason why I can not completely move away from Eclipse, what is the progress for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants