【Jenkins 비망록】Python 자동 테스트 환경 구축④프로젝트 작성편
2534 단어 Python3.6.0Jenkinsunittest
프로젝트 만들기
· 대시보드의 왼쪽 상단 "New Item"을 누르십시오.

・아래 그림의 화면으로 천이하므로, 프로젝트의 이름을 입력하고 「Freestyle project」를 선택하고 「OK」버튼을 누릅니다.

・프로젝트의 상세 설정 화면으로 천이하므로, 먼저 Python의 유닛 테스트 디렉토리를 Jenkins의 작업 공간으로 설정한다.
아래 그림의 오른쪽 끝에있는 "Advanced ..."버튼을 누르십시오.

・프로젝트의 상세 설정 화면에 「Use custom workspace」의 설정 개소가 표시되므로 체크를 하고,
입력 항목에는 Python 테스트용 파일이 있는 디렉토리를 입력한다.

· 작업 공간 설정을 입력 후 "Build"항목의 선택 상자에서 "Execute shell"을 선택하고 입력 항목에 "python test_calc.py"를 입력 한 후,
"Apply"버튼과 "Save"버튼을 누르십시오.

・「Save」버튼을 누른 후, 유닛 테스트 프로젝트의 톱 화면으로 천이하기 때문에, 좌단의 「Build Now」를 누른다.

・「Build Now」를 누른 후, 좌측 하단에 「#1」이 표시되므로, 「#1」을 누르십시오.

・「#1」을 누른 후, 빌드 결과의 관리 화면으로 천이하기 때문에, 좌단의 「Console Output」을 누른다.

· 콘솔의 상세 화면으로 전환합니다. 단말로부터 실행한 결과와 동일한 결과가 표시된다.

jenkins를 사용한 기본적인 자동 테스트는 이상으로 완료.
Reference
이 문제에 관하여(【Jenkins 비망록】Python 자동 테스트 환경 구축④프로젝트 작성편), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/Kento75/items/f46b4c47a3a33de7ae5d텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)