@VisibleForTesting을 활용에 대한 단상

간만에 개발에 대한 글을 써본다. 코드를 잠깐 봐볼까 싶다가 @VisibleForTesting이라는 Annotation을 봤다. 사실 처음보는 Annotation이라 뭐하는 놈인가 싶은 생각이 들어서 찾아봤다. Package com.google.common.annotations Annotation Type VisibleForTesting   @GwtCompatible public @interface VisibleForTesting Annotates a program element that exists, or is more widely visible than otherwise necessary, only for use in test code.Do not use this interface for public …

Continue reading ‘@VisibleForTesting을 활용에 대한 단상’ »

SonarQube 이용해서 만드는 CI

CI 들어봤나? Continuous Integration의 약자이다. 해석하자면 “지속적으로 통합하라” 라는 이야기다.  뭘? 코드를.  누가 작성한 코드를?  여러분과 여러분들의 동료들이 작성한 코드를 말한다. 왜 통합을 해야할까? 이유는 간단하다. 통합을 위해서. 뭔 소리냐구? 통합을 지속적으로 시도하는 이유는 바로 필요한 시점에 사고 터지는 걸 막기 위해서다.  누구나 익히 알고 있듯이 모든 개발은 팀 작업이다.  혼자 잘해서 되는 개발은 더 …

Continue reading ‘SonarQube 이용해서 만드는 CI’ »