Skip to content

Disable default TestNG listeners#730

Merged
olim7t merged 1 commit into
3.0.xfrom
disable-testng-listeners
Aug 30, 2016
Merged

Disable default TestNG listeners#730
olim7t merged 1 commit into
3.0.xfrom
disable-testng-listeners

Conversation

@tolbertam

Copy link
Copy Markdown
Contributor

TestNG old HTML reporter generates a lot of File I/O since it
open/closes files repeatedly which can cause system instability
like OS crashes rarely. This is made worse compounded by that
each test class file is considered its own suite, which causes an
amplification of file open and closes.

Since we only use the target/surefire-reports/TEST-TestSuite.xml
file, disabling these listeners shouldn't cause any problems.

Found via profiling that during this time the reporter is opening and closing upwards of 12k files per second:

screen shot 2016-08-12 at 3 33 07 pm

Looking at file probes, it appeared to be opening and closing the same files over and over again in the target/surefire-reports/old directory.

@tolbertam tolbertam added this to the 3.0.4 milestone Aug 16, 2016
TestNG old HTML reporter generates a lot of File I/O since it
open/closes files repeatedly which can cause system instability
like OS crashes rarely.  This is made worse compounded by that
each test class file is considered its own suite, which causes an
amplification of file open and closes.

Since we only use the target/surefire-reports/TEST-TestSuite.xml
file, disabling these listeners shouldn't cause any problems.
@olim7t olim7t force-pushed the disable-testng-listeners branch from 14895d1 to b16beff Compare August 30, 2016 20:35
@olim7t olim7t merged commit 85b81bb into 3.0.x Aug 30, 2016
@olim7t olim7t deleted the disable-testng-listeners branch August 30, 2016 20:35
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 this pull request may close these issues.

2 participants