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

java.lang.IllegalStateException: Results per method should NOT have been empty #3038

Closed
2 of 7 tasks
missedone opened this issue Jan 15, 2024 · 0 comments · Fixed by #3042
Closed
2 of 7 tasks

java.lang.IllegalStateException: Results per method should NOT have been empty #3038

missedone opened this issue Jan 15, 2024 · 0 comments · Fixed by #3042
Assignees
Milestone

Comments

@missedone
Copy link
Contributor

missedone commented Jan 15, 2024

TestNG Version

TestNG 7.10.0-SNAPSHOT

Expected behavior

no error

Actual behavior

[RemoteTestNG] detected TestNG version 7.10.0
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Hello
PASSED: hello.HelloTest.testHello

===============================================
    Default test
    Tests run: 1, Failures: 0, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0
===============================================

[TestNG] Reporter org.testng.reporters.EmailableReporter2@1f59a598 failed
java.lang.IllegalStateException: Results per method should NOT have been empty
	at org.testng.reporters.EmailableReporter2$TestResult.groupResults(EmailableReporter2.java:777)
	at org.testng.reporters.EmailableReporter2$TestResult.<init>(EmailableReporter2.java:702)
	at org.testng.reporters.EmailableReporter2$SuiteResult.<init>(EmailableReporter2.java:645)
	at org.testng.reporters.EmailableReporter2.generateReport(EmailableReporter2.java:61)
	at org.testng.TestNG.generateReports(TestNG.java:1175)
	at org.testng.TestNG.run(TestNG.java:1104)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:293)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:91)

Is the issue reproducible on runner?

  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans

Test case sample

just the simplest "hello world" test

package hello;

import org.testng.annotations.Test;

public class HelloTest {

	@Test
	public void testHello() {
		System.out.println("Hello");
	}
}

Contribution guidelines

Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

@krmahadevan krmahadevan added this to the 7.10.0 milestone Jan 16, 2024
krmahadevan added a commit to krmahadevan/testng that referenced this issue Jan 21, 2024
krmahadevan added a commit to krmahadevan/testng that referenced this issue Jan 21, 2024
krmahadevan added a commit that referenced this issue Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants