이전 포스트에 이어집니다.

junit task를 다음과 같이 변경할 수 있습니다.
    <target name="test" depends="compile">
        <mkdir dir="report/html"/>
        <junit printsummary="on" haltonfailure="on">
            <classpath refid="test.classpath">
            </classpath>
            <formatter type="xml"/>
            <batchtest todir="report">
                <fileset dir="dst">
                    <include name="**/*Test*"/>
                </fileset>
            </batchtest>
        </junit>
    </target>

리포팅 기능을 강화한 설정입니다.
report 폴더에 TEST-*.xml 파일이 생성이 됩니다.
이 파일을 이용해서 다음과 같은 문서를 생성할 수 있습니다.


추가되는  junitreport 코드는 다음과 같습니다. 굵게 표시해 놓았습니다.
    <target name="test" depends="compile">
        <mkdir dir="report/html"/>
        <junit printsummary="on" haltonfailure="on">
            <classpath refid="test.classpath">
            </classpath>
            <formatter type="xml"/>
            <batchtest todir="report">
                <fileset dir="dst">
                    <include name="**/*Test*"/>
                </fileset>
            </batchtest>
        </junit>
        <junitreport todir="report">
            <fileset dir="report">
                <include name="TEST-*.xml"/>
            </fileset>
            <report format="frames" todir="report/html"/>
        </junitreport>
    </target>

이제 남은 작업은 소스와 테스트코드 분리 설정과 그 후에 okjsp사이트에 적용하는 것입니다.
샘플 첨부합니다.

참고서적: 이클립스 프로젝트 필수 유틸리티, 민진우, 이인선 , 한빛미디어, 2009, p251~255
update
강의자료와 오디오 파일 올렸습니다.
http://www.okjsp.pe.kr/seq/132407
---------------
마이크로소프트의 김영욱 차장님을 모시고 진행했습니다. 한빛ENI 교육센터에서 진행이 되었는데, 장소는 참 좋았습니다. 토요일 오전 10시부터 12시30분까지 열강이 이어졌습니다.

저는 1시간을 eclipse 기본에 대해서 얘기했었고, 역시나 오늘도 시간이 많이 부족했습니다. 실습강의를 한다면 8시간씩 5일은 되어야 전달이 될 듯 합니다.

김영욱 차장님은 "UX가 없는 UX이야기"라는 역설적인 제목으로 실버라이트2와 이클립스기반의 실버라이트 개발을 얘기해주셨습니다. 곧 음성녹음파일을 공유하겠지만, 차분하고 재미있게 현재 업계에서 진행되는 RIA개발의 현황을 들려주셔서 좋았습니다.

참가해주신 분들 고맙습니다. ^^


+ Recent posts