CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
785 stars 75 forks source link

Combine methode name and doc string in output #252

Closed buhtz closed 2 years ago

buhtz commented 2 years ago

With -vvv the output gives the first line of the doc-string of each test_*() method like this

Green 3.3.0, Coverage 5.5, Python 3.9.2

buhtzology.tests.test_khq
  TestKHK
.   KHQ Question 1

When doing -vv the output is this.

buhtzology.tests.test_khq
  TestKHK
.   test_Q1

What I would prefer is to have an output combining the method name and the doc string like this:

Green 3.3.0, Coverage 5.5, Python 3.9.2

buhtzology.tests.test_khq
  TestKHK
.   test_Q1: KHQ Question 1

Maybe adding a -vvvv?

CleanCut commented 2 years ago

I like it! Let's do it.

CleanCut commented 2 years ago

✅ Included in version 3.4.0 (just released)