일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- AWS
- 갓재석
- python all testcode
- 코딩테스트
- METACLASS
- 우아한테크코스 2차
- 프로그래머스
- Spring
- AWS S3
- springboot 3.0.0
- Django
- javascript
- depends_on
- MySQL server on 'db' (115)
- docker
- S3
- 우아한 테크코스 2차 합격
- 재귀함수가 뭔가요
- github skyline
- OperationalError
- classproperty
- TypeError: 'property' object is not iterable
- github
- EC2
- depends
- python
- DB
- classmethod
- docker-compose
- 2차 코딩테스트
Archives
hanbin.dev
[Python] unittest 모든 테스트 코드 실행하기 본문
하위 디렉토리의 모든 테스트를 실행하고 싶을 때가 있다.
그럴때는
$ python -m unittest discover
를 입력하면 하위 디렉토리의 모든 테스트를 실행한다. (기본적으로 "test*.py" 포맷의 파일을 찾아 실행한다.)
$ python -m unittest discover
F.
======================================================================
FAIL: test_failure (test2.HelloTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace\study\TIL\test2.py", line 9, in test_failure
self.assertEqual(0,1)
AssertionError: 0 != 1
----------------------------------------------------------------------
Ran 2 tests in 0.001s
FAILED (failures=1)
'Python' 카테고리의 다른 글
[Python] NotImplementedError: Don't know how to literal-quote value ~ (0) | 2022.07.27 |
---|---|
[Python] metaclass 란 (0) | 2022.06.06 |
TypeError: 'property' object is not iterable (0) | 2021.06.02 |
[Python] namespace란 (0) | 2021.05.12 |
[Python] 메타클래스(metaclass) 란? (0) | 2021.05.11 |