nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.26k stars 110 forks source link

question mark appearing next to failed tests in summary window #53

Closed armanschwarz closed 2 years ago

armanschwarz commented 2 years ago

I have a test file called test_mytest.py with the following contents:

    3 import unittest
    2
    1
✖ 4   class MyTest(unittest.TestCase):
✔   1     def test_my_test_case(self) -> None:
    2         self.assertTrue(True)
    3
✖   4     def test_my_test_case2(self) -> None:
E   5         self.assertTrue(True)     ■ Traceback (most recent call last):    File "/root/host/test/test_mytest.py", line 9, in test_my_test_case2      self.assertTrue(False)  AssertionError: False is not true

However, when I open the summary window with :lua require("neotest").summary.toggle() the failed test shows up with a question mark (?):

neotest-python
├─ ? .local
├─ ? .vim
╰╮ ? test
 ╰╮ ? test_mytest.py
  ╰╮ ? MyTest
   ├─ ✔ test_my_test_case
   ╰─ ? test_my_test_case2

I'm using the CaskaydiaCove NF font through Windows Terminal. I'm fairly sure this isn't a font issue since I tried CodeNewRoman NF and it was the same. Besides, the tick and cross both work fine in the code window.

armanschwarz commented 2 years ago

I can't reproduce this anymore... Will reopen if it happens again. Sorry.