Almenon / Almenon/AREPL-vscode

unittests are not run

Đang mở
#104 3 bình luận 0 reaction 1 người được giao Được @Almenon nhận Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
301
Fork
46
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Take this sample code from https://docs.python.org/3/library/unittest.html
```python
import unittest

class TestStringMethods(unittest.TestCase):

def test_upper(self):
self.assertEqual('foo'.upper(), 'FOO')

def test_isupper(self):
self.assertTrue('FOO'.isupper())
self.assertFalse('Foo'.isupper())

def test_split(self):
s = 'hello world'
self.assertEqual(s.split(), ['hello', 'world'])
# check that s.split fails when the separator is not a string
with self.assertRaises(TypeError):
s.split(2)

if __name__ == '__main__':
unittest.main()
```

AREPL says:

> Ran 0 tests in 0.000s

Expected result: it runs 3 tests

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.