From 5ae30f3f964bb8b6dc2fc0c983b68d18a39c0dc8 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Wed, 27 May 2015 00:22:51 +0300 Subject: [PATCH] Logging improved --- .../jetbrains/env/python/testing/PythonUnitTestingTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java b/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java index fdc09de68287..d19e11457f96 100644 --- a/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java +++ b/python/testSrc/com/jetbrains/env/python/testing/PythonUnitTestingTest.java @@ -1,5 +1,6 @@ package com.jetbrains.env.python.testing; +import com.intellij.openapi.util.text.StringUtil; import com.jetbrains.env.PyEnvTestCase; import com.jetbrains.env.ut.PyTestTestTask; import com.jetbrains.env.ut.PyUnitTestTask; @@ -94,7 +95,8 @@ public class PythonUnitTestingTest extends PyEnvTestCase { @Override public void after() { final List fileNames = getHighlightedStrings().second; - Assert.assertThat("Wrong number of highlighted entries", fileNames, Matchers.hasSize(3)); + Assert.assertThat(String.format("Wrong number of highlighted entries(%s)", StringUtil.join(fileNames, ",")), + fileNames, Matchers.hasSize(3)); // UnitTest highlights file name Assert.assertThat("Bad line highlighted", fileNames, Matchers.everyItem(Matchers.endsWith(fileName))); }