PaaS/CI CD

CI/CD에서 테스트가 매우 중요해지고 있다.

armyost 2023. 11. 9. 22:53
728x90

필자는 글로벌 표준을 볼때 Google, AWS, Netflix Blog를 보곤한다. 

 

요즘 국내 개발자 시장도 그렇고 전반적으로 "테스트"에 관심이 많다. 

 

AWS Device Farm은 테스트 용 인프라를 프로비저닝하고 관리하지 않아도 다양한 데스크톱 브라우저 및 실제 모바일 디바이스에서 테스트를 진행하여 웹 및 모바일 앱 품질을 향상시키는 애플리케이션 테스트 서비스이다. 테스트를 통해 여러 데스크톱 브라우저나 실제 디바이스에서 동시에 테스트를 실행함으로써 테스트 도구 실행 속도를 높이고 비디오 및 로그를 생성하여 앱과 관련된 문제를 빠르게 식별할 수 있다.

 

아래 그림에서 보듯 Deploy하여 QA환경에서 환경별 테스트를 진행한다. (운영은 아닐것이라 생각, Quality Gate를 통과해야 운영배포 지속)

링크 : https://aws.amazon.com/ko/blogs/devops/integrating-aws-device-farm-with-ci-cd-pipeline-to-run-cross-browser-selenium-tests/

 

Integrating AWS Device Farm with your CI/CD pipeline to run cross-browser Selenium tests | Amazon Web Services

Continuously building, testing, and deploying your web application helps you release new features sooner and with fewer bugs. In this blog, you will create a continuous integration and continuous delivery (CI/CD) pipeline for a web app using AWS CodeStar s

aws.amazon.com

 

아래의 파이프라인을 보면 Linting, Security, Unit Test 프로세스가 있다. 그리고 병렬로 실행된다. 

  • LINT : 정적분석 ( SonarQube, SonarLint, PMD )
  • Unit Test : Test Driven Design 개념으로 작성된 Test Code ( JUnit, Pytest )
  • Security : 보안적인 잠재적 이슈사항 확인 ( cfn-nag )

 

링크 :  https://github.com/aws-samples/aws-codepipeline-cicd

 

GitHub - aws-samples/aws-codepipeline-cicd

Contribute to aws-samples/aws-codepipeline-cicd development by creating an account on GitHub.

github.com

 

※ cfn-nag : https://github.com/stelligent/cfn_nag

 

GitHub - stelligent/cfn_nag: Linting tool for CloudFormation templates

Linting tool for CloudFormation templates. Contribute to stelligent/cfn_nag development by creating an account on GitHub.

github.com

 

※ 각종 테스트, 분석 오픈소스 모음이다.