<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Testing on DevTrace — 글로벌 개발 에러 트러블슈팅</title><link>https://tokkabi.com/tags/testing/</link><description>Recent content in Testing on DevTrace — 글로벌 개발 에러 트러블슈팅</description><generator>Hugo -- 0.125.0</generator><language>ko</language><lastBuildDate>Sun, 19 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tokkabi.com/tags/testing/index.xml" rel="self" type="application/rss+xml"/><item><title>Jest에서 예외 타입 테스트하는 방법 — toThrow로 TypeError/message 검증</title><link>https://tokkabi.com/posts/how-to-test-the-type-of-a-thrown-exception-in-jest/</link><pubDate>Sun, 19 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/how-to-test-the-type-of-a-thrown-exception-in-jest/</guid><description>Jest에서 함수가 던지는 예외의 타입(TypeError, ReferenceError 등)을 테스트하는 방법을 다룹니다. expect에 함수를 전달하고 toThrow로 예외 타입과 메시지를 검증하는 방법, AVA의 t.throws 문법에서 Jest로 마이그레이션하는 방법을 코드 블록과 비교표로 설명합니다.</description></item><item><title>pytest에서 예외 발생을 올바르게 검증하는 방법 (pytest.raises)</title><link>https://tokkabi.com/posts/pytest-exception-assert-raises/</link><pubDate>Sat, 11 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/pytest-exception-assert-raises/</guid><description>pytest에서 예외 발생을 검증하는 올바른 방법은 pytest.raises를 사용하는 것입니다. try/except와 pytest.fail을 사용하면 traceback이 제대로 출력되지 않아 디버깅이 어렵습니다. pytest.raises 컨텍스트 매니저를 활용하면 예외 발생 여부와 예외 정보를 깔끔하게 확인할 수 있습니다.</description></item></channel></rss>