# Disable duplicate logging in \[Test Output\]

**URL:** <https://discuss.gradle.org/t/disable-duplicate-logging-in-test-output/31407>\
**Category:** Help/Discuss\
**Created:** [April 12, 2019, 7:15pm UTC](https://discuss.gradle.org/t/disable-duplicate-logging-in-test-output/31407 "2019-04-12T19:15:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelc](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@michaelc](https://discuss.gradle.org/u/michaelc)\
**Post date:** [April 12, 2019, 7:15pm UTC](https://discuss.gradle.org/t/disable-duplicate-logging-in-test-output/31407/1 "2019-04-12T19:15:29Z")

</div>

Hi, we are using Gradle with testng. After tests are ran, here is the (teamcity) log:  
[Step 5/10] :test (15s)  
[:test] Gradle suite \> Gradle test \> com.workday.omsauto.wpc.GMCExampleTest.testGetProjects STANDARD\_OUT  
…  
[Step 5/10] Gradle suite (9s)

[Gradle suite] Gradle test (9s)

[Gradle test] com.workday.omsauto.wpc.GMCExampleTest.testGetProjects (9s)  
[com.workday.omsauto.wpc.GMCExampleTest.testGetProjects] [Test Output]  
…  
The two sections represented by … are the actually the logs. the second one in [Test Output] is exactly the same as the first one with the same timestamp. Since we have tens of thousands of line of longs. we would like to remove the repeat in [Test Output]. But I have not found a way to do so.

---

<div class="post-metadata">

**Author:** ![thirdman99](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@thirdman99](https://discuss.gradle.org/u/thirdman99)\
**Post date:** [March 12, 2022, 1:04pm UTC](https://discuss.gradle.org/t/disable-duplicate-logging-in-test-output/31407/2 "2022-03-12T13:04:24Z")

</div>

I have this same exact issue with using Gradle on TeamCity with the test target.  
It never happens with running the same test target on the command-line (i.e. outside of TeamCity).

I cannot find any other people reporting this same issue other than this.  
I guess not many people use Gradle on TeamCity?

It’d be great if somebody can help on this.  
Taka

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [March 13, 2022, 12:27am UTC](https://discuss.gradle.org/t/disable-duplicate-logging-in-test-output/31407/3 "2022-03-13T00:27:59Z")

</div>

TeamCity is using a ~700 lines init script where amongst other things also stuff about test output is done.  
I didn’t read it too in-depth, but especially as you said it does not happen on command line, I’d say you should probably report it to JetBrains at [youtrack.jetbrains.com](http://youtrack.jetbrains.com) and post a link here for reference.
