본문 바로가기
  • AI (Artificial Intelligence)

Fundamental/TTD (Test-driven development)6

How to Setup SonarQube locally on Mac Ref. https://techblost.com/how-to-setup-sonarqube-locally-on-mac/ SonarQube is an open platform for managing continuous inspection of the code quality, which can locate potential errors in the codebase. It currently supports more than 20+ programming languages including support on C#, JavaScript, C/C++, TypeScript, Go, Python, etc., and other languages. In this article, we will see How to Setup .. 2023. 9. 13.
Mocha vs. Jest: comparison of two testing tools for Node.js Ref. https://www.merixstudio.com/blog/mocha-vs-jest/ Application testing is an inseparable part of product development, every developer knows that. Applying Test-Driven Development (TDD) approach supports maintaining a clean, modular, and well-prepared codebase, which tends to deliver high-quality software. JavaScript could be tested using many libraries, although two of the most popular testing.. 2021. 7. 12.
TestDouble Ref. https://martinfowler.com/bliki/TestDouble.html Gerard Meszaros is working on a book to capture patterns for using the various Xunit frameworks. One of the awkward things he's run into is the various names for stubs, mocks, fakes, dummies, and other things that people use to stub out parts of a system for testing. To deal with this he's come up with his own vocabulary which I think is worth .. 2021. 7. 5.
Contract Testing for Node.js Microservices with Pact Ref. https://codersociety.com/blog/articles/contract-testing-pact Contract testing helps ensure the compatibility of microservices and decouples the development and deployment processes of software teams. In this article, you'll learn more about contract testing and how to use Pact to verify and ensure your Node.js microservices' API compatibility. In this article Ensuring API compatibility in d.. 2021. 7. 5.
[Mockito] Mock 개념(Mock Object) Ref. https://www.crocus.co.kr/1555 단위 테스트를 하기 위해서는 한번에 메서드 하나만을 실행해 보는 것인데 이러한 메서드가 다른 네트워크, 데이터베이스 등등 제어하기 어려운 것들에 의존하고 있다면 어떻게 단위 테스트를 해야할까? 즉, 코드가 해당하는 Flow가 아닌 시스템의 다른 부분에 많이 얽혀 있고 의존해있다면 단위 테스트를 하기에는 매우 어려울 것이다. 따라서 이러한 것을 돕기위해 Mock이라는 것이 나타났다. Mock이란? 실제 객체를 만들어 사용하기에 시간, 비용 등의 Cost가 높거나 혹은 객체 서로간의 의존성이 강해 구현하기 힘들 경우 가짜 객체를 만들어 사용하는 방법이다. Mock 객체는 언제 필요한가? 테스트 작성을 위한 환경 구축이 어려운 경우 테스트가 특정 .. 2021. 7. 5.
Mock 이란? Ref. https://minzzang.tistory.com/5 안녕하세요 이번에는 [Mock]에 대해 알아보겠습니다. Mock이란 ? 실제 객체를 만들기엔 비용과 시간이 많이 들거나 의존성이 길게 걸쳐져 있어 제대로 구현하기 어려울 경우, 가짜 객체를 만들어 사용하는데 이것을 Mock이라 합니다. Mock 객체는 언제 필요한가? 테스트 작성을 위한 환경 구축이 어려운 경우 환경 구축을 위한 작업 시간이 많이 필요할 때 Mock객체를 사용합니다. (데이터베이스, 웹서버, FTP서버 등) 아직 개발되지 않은 모듈을 사용하는 테스트가 필요할 때 사용합니다. 테스트가 특정 경우나 순간에 의존적인 경우 테스트 시간이 오래 걸리는 경우 Mock에 대한 기본적인 분류 1. 테스트 더블 테스트를 진행하기 어려운 경우.. 2021. 7. 5.