SlideShare une entreprise Scribd logo
1  sur  20
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Test Code
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
목차
1. T
estCode
2. T
est
table of contents
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
- Layered Architecture
- Unit Test
- Integration Test
- End to End Test
- Why Test?
- Test Code?
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
1
Test Code
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 1
T
estCode -WhyT
est?
MBTI TEST
각자 선호하는 경향을 찾고, 이러한 선호 경향들
이 인간의 행동에 어떠한 영향을 미치는가를 파
악하여 실생활에 응용할 수 있도록 제작된 심리
검사이다.
-위키백과-
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 1
T
estCode -WhyT
est?
Q. test?
1. to use a set of questions or problems to measure someone's skills, knowledge, or a
bilities
2. often + on
3. to examine a part of the body or a substance taken from the body
- 네이버 영어사전 -
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 1
T
estCode -WhyT
est?
TEST
대상을 측정하여, 사용하기 위해서!!
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 1
T
estCode -Test Code?
Test Code
소프트웨어의 기능과 동작을
테스트하는 데 사용되는 코드
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 1
T
estCode -Test Code?
대상을 측정하여, 사용하기 위해서!!
Production Code 에서!
1
1
2
2
3
3
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 1
T
estCode -Test Code?
코드 품질 향상
• 사전의 버그 발견하여 에러 방지
• 개발자가 신뢰할 수 있음
• 기능에 대해 신뢰도를 높일 수 있음
• 서비스 품질 향상
리팩토링
• 서비스에서 동작하는 기능에 대한 안정적
인 확장 가능
• 코드 수정이나 구조 변경에 대한 두려움
줄어듦
• 유지보수 비용 줄일 수 있음
문서화
• 코드의 예상 동작을 명확하게 인지
• 개발자 간의 커뮤니케이션 향상
• 프로덕션 기능을 설명하는 테스트 코드
문서로, 팀의 자산으로 공유할 수 있음
• 새로운 개발자가 와도 빠르게 적응 가능
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
2
Test
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–Layered Architecture
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–Unit Test
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–Unit Test
Q. 단위 테스트(Unit Test)??
A. 한 모듈에서 독립적으로 진행되는 가장 작은 단위의 테스트
Q. 단위 테스트의 장점
- 조기 버그 발견 가능
- 안전한 테스트망을 가지고 있기 때문에 리팩토링이 쉬움
- 문서화 기능
클래스 or 메서드
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–Unit Test
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–IntegrationT
est
Q. 통합 테스트(Integration Test)??
A. 여러 모듈들을 모아 이들이 의도대로 협력하는지 확인하는 테스트
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–IntegrationT
est
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–EndtoEndT
est
Q. E2E Test(End to End Test)??
A. 시스템의 시작부터 끝까지 전체 흐름을 확인하는 테스트
=> 백엔드 관점에서 서버에 요청을 보낸 뒤,
클라이언트에서 원하는 데이터가 전송되는 지 확인해야 한다.
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
T
est–EndtoEndT
est
E2E Test
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
Reference
Reference links
• https://tecoble.techcourse.co.kr/post/2021-05-25-unit-test-vs-integration-test-vs-
acceptance-test/
• https://bitrise.io/blog/post/what-is-unit-testing-in-mobile-development
• https://soojae.tistory.com/74
• https://hyg4196.tistory.com/127
• https://leveloper.tistory.com/14
• https://sowon-dev.github.io/2020/10/18/201019spring/
ⓒSaebyeol Yu. Saebyeol’s PowerPoint
Part 2
마무리
TEST Code
가까이 보면 느리지만, 멀리 보면 가장 빠르다!

Contenu connexe

Similaire à TestCode

Java8의모든것.pptx
Java8의모든것.pptxJava8의모든것.pptx
Java8의모든것.pptxssuserc9c9d9
 
테스트 자동화의 원칙
테스트 자동화의 원칙테스트 자동화의 원칙
테스트 자동화의 원칙codevania
 
코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018
코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018
코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018SangIn Choung
 
프로젝트 Xxx에 적용하고 싶은 개발방법
프로젝트 Xxx에 적용하고 싶은 개발방법프로젝트 Xxx에 적용하고 싶은 개발방법
프로젝트 Xxx에 적용하고 싶은 개발방법도형 임
 
Istqb 4-테스트설계기법-2015-1
Istqb 4-테스트설계기법-2015-1Istqb 4-테스트설계기법-2015-1
Istqb 4-테스트설계기법-2015-1Jongwon Lee
 
Istqb 1-소프트웨어테스팅기초-2015
Istqb 1-소프트웨어테스팅기초-2015Istqb 1-소프트웨어테스팅기초-2015
Istqb 1-소프트웨어테스팅기초-2015Jongwon Lee
 
Istqb 4-테스트설계기법-2015-3-배포
Istqb 4-테스트설계기법-2015-3-배포Istqb 4-테스트설계기법-2015-3-배포
Istqb 4-테스트설계기법-2015-3-배포Jongwon Lee
 
13th.Lecture.Prototyping.and.Usability.Test.pdf
13th.Lecture.Prototyping.and.Usability.Test.pdf13th.Lecture.Prototyping.and.Usability.Test.pdf
13th.Lecture.Prototyping.and.Usability.Test.pdfJeongeun Kwon
 
피피티 수경재배 폰트수정 최종 55
피피티 수경재배 폰트수정 최종 55피피티 수경재배 폰트수정 최종 55
피피티 수경재배 폰트수정 최종 55ssuser417482
 
Istqb 1-소프트웨어테스팅기초
Istqb 1-소프트웨어테스팅기초Istqb 1-소프트웨어테스팅기초
Istqb 1-소프트웨어테스팅기초Jongwon Lee
 
xUnitTestPattern/chapter3
xUnitTestPattern/chapter3xUnitTestPattern/chapter3
xUnitTestPattern/chapter3수윤 장
 
Visual ActionBoard 소개
Visual ActionBoard 소개Visual ActionBoard 소개
Visual ActionBoard 소개The Innovation Lab
 
Growing object oriented software guided by test
Growing object oriented software guided by testGrowing object oriented software guided by test
Growing object oriented software guided by test라한사 아
 
발표자료 1인qa로살아남는6가지방법
발표자료 1인qa로살아남는6가지방법발표자료 1인qa로살아남는6가지방법
발표자료 1인qa로살아남는6가지방법SangIn Choung
 
1st.Lecture.Introduction.pdf
1st.Lecture.Introduction.pdf1st.Lecture.Introduction.pdf
1st.Lecture.Introduction.pdfJeongeun Kwon
 
20141208 액션러닝 강의
20141208 액션러닝 강의20141208 액션러닝 강의
20141208 액션러닝 강의humana12
 
제안, 제안활동, 제안제도
제안, 제안활동, 제안제도제안, 제안활동, 제안제도
제안, 제안활동, 제안제도Osan University
 
행복한 개발을 위한_테스트_케이스
행복한 개발을 위한_테스트_케이스행복한 개발을 위한_테스트_케이스
행복한 개발을 위한_테스트_케이스도형 임
 

Similaire à TestCode (20)

Java8의모든것.pptx
Java8의모든것.pptxJava8의모든것.pptx
Java8의모든것.pptx
 
테스트 자동화의 원칙
테스트 자동화의 원칙테스트 자동화의 원칙
테스트 자동화의 원칙
 
코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018
코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018
코드 테스트와 커버리지 관련 설문 및 개선계획수립 in 2018
 
프로젝트 Xxx에 적용하고 싶은 개발방법
프로젝트 Xxx에 적용하고 싶은 개발방법프로젝트 Xxx에 적용하고 싶은 개발방법
프로젝트 Xxx에 적용하고 싶은 개발방법
 
Istqb 4-테스트설계기법-2015-1
Istqb 4-테스트설계기법-2015-1Istqb 4-테스트설계기법-2015-1
Istqb 4-테스트설계기법-2015-1
 
Istqb 1-소프트웨어테스팅기초-2015
Istqb 1-소프트웨어테스팅기초-2015Istqb 1-소프트웨어테스팅기초-2015
Istqb 1-소프트웨어테스팅기초-2015
 
Istqb 4-테스트설계기법-2015-3-배포
Istqb 4-테스트설계기법-2015-3-배포Istqb 4-테스트설계기법-2015-3-배포
Istqb 4-테스트설계기법-2015-3-배포
 
13th.Lecture.Prototyping.and.Usability.Test.pdf
13th.Lecture.Prototyping.and.Usability.Test.pdf13th.Lecture.Prototyping.and.Usability.Test.pdf
13th.Lecture.Prototyping.and.Usability.Test.pdf
 
피피티 수경재배 폰트수정 최종 55
피피티 수경재배 폰트수정 최종 55피피티 수경재배 폰트수정 최종 55
피피티 수경재배 폰트수정 최종 55
 
Istqb 1-소프트웨어테스팅기초
Istqb 1-소프트웨어테스팅기초Istqb 1-소프트웨어테스팅기초
Istqb 1-소프트웨어테스팅기초
 
xUnitTestPattern/chapter3
xUnitTestPattern/chapter3xUnitTestPattern/chapter3
xUnitTestPattern/chapter3
 
Visual ActionBoard 소개
Visual ActionBoard 소개Visual ActionBoard 소개
Visual ActionBoard 소개
 
Growing object oriented software guided by test
Growing object oriented software guided by testGrowing object oriented software guided by test
Growing object oriented software guided by test
 
발표자료 1인qa로살아남는6가지방법
발표자료 1인qa로살아남는6가지방법발표자료 1인qa로살아남는6가지방법
발표자료 1인qa로살아남는6가지방법
 
1st.Lecture.Introduction.pdf
1st.Lecture.Introduction.pdf1st.Lecture.Introduction.pdf
1st.Lecture.Introduction.pdf
 
Stand up
Stand upStand up
Stand up
 
20141208 액션러닝 강의
20141208 액션러닝 강의20141208 액션러닝 강의
20141208 액션러닝 강의
 
Warm up in JVM
Warm up in JVMWarm up in JVM
Warm up in JVM
 
제안, 제안활동, 제안제도
제안, 제안활동, 제안제도제안, 제안활동, 제안제도
제안, 제안활동, 제안제도
 
행복한 개발을 위한_테스트_케이스
행복한 개발을 위한_테스트_케이스행복한 개발을 위한_테스트_케이스
행복한 개발을 위한_테스트_케이스
 

TestCode

  • 1. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Test Code
  • 2. ⓒSaebyeol Yu. Saebyeol’s PowerPoint 목차 1. T estCode 2. T est table of contents ⓒSaebyeol Yu. Saebyeol’s PowerPoint - Layered Architecture - Unit Test - Integration Test - End to End Test - Why Test? - Test Code?
  • 3. ⓒSaebyeol Yu. Saebyeol’s PowerPoint 1 Test Code
  • 4. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 1 T estCode -WhyT est? MBTI TEST 각자 선호하는 경향을 찾고, 이러한 선호 경향들 이 인간의 행동에 어떠한 영향을 미치는가를 파 악하여 실생활에 응용할 수 있도록 제작된 심리 검사이다. -위키백과-
  • 5. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 1 T estCode -WhyT est? Q. test? 1. to use a set of questions or problems to measure someone's skills, knowledge, or a bilities 2. often + on 3. to examine a part of the body or a substance taken from the body - 네이버 영어사전 -
  • 6. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 1 T estCode -WhyT est? TEST 대상을 측정하여, 사용하기 위해서!!
  • 7. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 1 T estCode -Test Code? Test Code 소프트웨어의 기능과 동작을 테스트하는 데 사용되는 코드
  • 8. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 1 T estCode -Test Code? 대상을 측정하여, 사용하기 위해서!! Production Code 에서! 1 1 2 2 3 3
  • 9. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 1 T estCode -Test Code? 코드 품질 향상 • 사전의 버그 발견하여 에러 방지 • 개발자가 신뢰할 수 있음 • 기능에 대해 신뢰도를 높일 수 있음 • 서비스 품질 향상 리팩토링 • 서비스에서 동작하는 기능에 대한 안정적 인 확장 가능 • 코드 수정이나 구조 변경에 대한 두려움 줄어듦 • 유지보수 비용 줄일 수 있음 문서화 • 코드의 예상 동작을 명확하게 인지 • 개발자 간의 커뮤니케이션 향상 • 프로덕션 기능을 설명하는 테스트 코드 문서로, 팀의 자산으로 공유할 수 있음 • 새로운 개발자가 와도 빠르게 적응 가능
  • 10. ⓒSaebyeol Yu. Saebyeol’s PowerPoint 2 Test
  • 11. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–Layered Architecture
  • 12. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–Unit Test
  • 13. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–Unit Test Q. 단위 테스트(Unit Test)?? A. 한 모듈에서 독립적으로 진행되는 가장 작은 단위의 테스트 Q. 단위 테스트의 장점 - 조기 버그 발견 가능 - 안전한 테스트망을 가지고 있기 때문에 리팩토링이 쉬움 - 문서화 기능 클래스 or 메서드
  • 14. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–Unit Test
  • 15. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–IntegrationT est Q. 통합 테스트(Integration Test)?? A. 여러 모듈들을 모아 이들이 의도대로 협력하는지 확인하는 테스트
  • 16. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–IntegrationT est
  • 17. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–EndtoEndT est Q. E2E Test(End to End Test)?? A. 시스템의 시작부터 끝까지 전체 흐름을 확인하는 테스트 => 백엔드 관점에서 서버에 요청을 보낸 뒤, 클라이언트에서 원하는 데이터가 전송되는 지 확인해야 한다.
  • 18. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 T est–EndtoEndT est E2E Test
  • 19. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 Reference Reference links • https://tecoble.techcourse.co.kr/post/2021-05-25-unit-test-vs-integration-test-vs- acceptance-test/ • https://bitrise.io/blog/post/what-is-unit-testing-in-mobile-development • https://soojae.tistory.com/74 • https://hyg4196.tistory.com/127 • https://leveloper.tistory.com/14 • https://sowon-dev.github.io/2020/10/18/201019spring/
  • 20. ⓒSaebyeol Yu. Saebyeol’s PowerPoint Part 2 마무리 TEST Code 가까이 보면 느리지만, 멀리 보면 가장 빠르다!