Almenon / Almenon/AREPL-vscode

unittests are not run

Aperta
#104 3 commenti 0 reazioni 1 assegnatario Rivendicata da @Almenon Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
301
Fork
46
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.