Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


빌드를 구성했는데, 다음과 같은 오류 화면이 나오는 경우가 있습니다.

TFS 빌드 오류 화면

위의 "Log" 파일을 클릭해 보면, 아래와 같이 "Target CoreTest:" 영역에서 오류가 난 것을 확인할 수 있습니다.


Target CoreTest:
    Creating directory "C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\TestResults".
    __________________________________________________
    Project "C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\TFSBuild.proj" is building "C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\TFSBuild.proj" (RunTestWithConfiguration target(s)):

    Target RunTestWithConfiguration:
        
        
        TestToolsTask MetadataFile="C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\Msdn.MathLibrary\Msdn.MathLibrary.vsmdi" TestLists="Double Tests, Int Tests" SearchPathRoot="C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\Binaries\Debug\" PathToResultsFilesRoot="C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\TestResults" PublishServer="http://win2003base:8080/" TeamProject="MSDN Calculator" PublishBuild="Continuous Integration_20060409.6" BuildFlavor="Debug" Platform="Any CPU"
        Loading C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\Msdn.MathLibrary\Msdn.MathLibrary.vsmdi...
        
        Search path(s) for tests:
        C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\BuildType\..\Sources\..\Binaries\Debug\
        C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\Sources\Msdn.MathLibrary
        Search path(s) for default run configuration:
        C:\temp\TeamBuild\MSDN Calculator\Continuous Integration\Sources\Msdn.MathLibrary
        
        Starting execution...
        MSBUILD : warning : Specified cast is not valid. (지정한 캐스트가 잘못되었습니다.)
        The previous error was converted to a warning because the task was called with ContinueOnError=true.
        C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : There are no results to be published. 
        Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".
    Done building target "RunTestWithConfiguration" in project "TFSBuild.proj".

    Done building project "TFSBuild.proj".


위의 오류에 대해서 MSDN 을 검색해 보면, 다음과 같은 답이 나옵니다.
MSBUILD: warning : Specified cast is not valid

Make sure that you do not have an empty test list or subtest list included in the build process. If you have empty lists, edit the tfsbuild.proj file to remove them.
즉, 테스트 항목이 비어 있다는 것인데요.

가령 예를 들어, 아래의 예에는 테스트 메서드가 10 개 있을 때의 "Test Manager" 화면을 보여주고 있습니다.

Test Manager 대화창

보시는 것처럼, "Test List Full Name" 이 비어 있는 것을 확인할 수 있습니다. 즉, 테스트 메서드만 있을 뿐, 해당 테스트 들이 "Double Test" 또는 "Int Tests" 에는 지정되어 있지 않다는 것입니다. 따라서, "All Loaded Tests" 에 있는 테스트 항목들을 적절하게 선택해서 "Double Test" 또는 "Int Tests"에 끌어다 놓아야 합니다.

모두 완료되었으면 다음과 같은 화면이 됩니다.

Test Manager 대화창

이제, 다시 빌드를 시작하면 - 물론, 해당 빌드가 "Double Test" 또는 "Int Tests" 에 대한 단위 테스트를 한다고 지정했던 - 오류가 없이 정상적으로 진행되는 것을 확인하실 수 있습니다. (Test Manager에서 수정하신 다음, 체크인하는 것 잊지 마십시오. 빌드 서버에서는 체크인 된 소스만 가져갈 수 있습니다.)






[최초 등록일: ]
[최종 수정일: 4/14/2006]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... [166]  167  168  169  170  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
889정성태7/5/201026549.NET Framework: 179. Dictionary.Get(A) 대신 Dictionary.Get(A.GetHashCode())를 사용해서는 안 되는 이유 [1]
888정성태6/30/201024347오류 유형: 96. Hyper-V 연결 오류 - A connection will not be made because credentials may not be sent to the remote computer
887정성태6/23/201034184개발 환경 구성: 79. Hyper-V의 가상 머신에서 소리 재생 방법 [2]
886정성태6/23/201022389제니퍼 .NET: 14. ASMX, WCF 호출 모니터링 및 누수 확인
885정성태6/20/201023930개발 환경 구성: 78. COM+ 서버에서 COM+ 서버를 호출하는 방법
884정성태6/20/201026882제니퍼 .NET: 13. COM+ 서버 모니터링 [2]
883정성태6/18/201028759개발 환경 구성: 77. Appinit_Dlls로 구현한 환경 변수 설정 DLL [5]파일 다운로드1
882정성태6/17/201031601개발 환경 구성: 76. JKS(Java Key Store)에 저장된 인증서를 ActiveX 코드 서명에 사용하는 방법 [1]
881정성태6/14/201021030제니퍼 .NET: 12. COM+ 호출 모니터링 및 누수 확인
879정성태6/10/201023691제니퍼 .NET: 11. 소켓 모니터링 기능으로 본 ASP.NET의 소켓 풀링 기능 [1]
878정성태6/6/201023476제니퍼 .NET: 10. 소켓 모니터링 기능으로 본 WCF의 WSDualHttpBinding 성능 부하
877정성태5/31/201020227제니퍼 .NET: 9. 성능 관리 퀴즈 세 번째 문제 (닷넷 개발자 컨퍼런스)
876정성태5/31/201019657제니퍼 .NET: 8. 성능 관리 퀴즈 두 번째 문제 (닷넷 개발자 컨퍼런스) [2]
875정성태5/30/201021386제니퍼 .NET: 7. 성능 관리 퀴즈 첫 번째 문제 (닷넷 개발자 컨퍼런스)
873정성태5/19/201028263제니퍼 .NET: 6. 제니퍼를 위한 방화벽 설정
872정성태5/15/201027605제니퍼 .NET: 5. 제니퍼 서버 - NT 서비스로 구동시키는 방법
871정성태5/13/201034181VC++: 40. MSBuild를 이용한 VC++ 프로젝트 빌드파일 다운로드1
870정성태5/12/201025189제니퍼 .NET: 4. 닷넷 APM 솔루션 - 제니퍼 닷넷의 기능 요약 [2]
869정성태11/8/201926660오류 유형 : 95. WCF 인증서 설정 관련 오류 정리 [4]
865정성태5/5/201028946개발 환경 구성: 75. 인증서의 개인키를 담은 물리 파일 위치 알아내는 방법파일 다운로드1
864정성태5/4/201032821.NET Framework: 178. WCF - 사용자 정의 인증 구현 예제 [4]파일 다운로드1
863정성태5/4/201058706개발 환경 구성: 74. 인증서 관련(CER, PVK, SPC, PFX) 파일 만드는 방법 [1]파일 다운로드1
862정성태5/3/201020602제니퍼 .NET: 3. 제2회 닷넷 개발자 컨퍼런스에서 뵙겠습니다. ^^
861정성태5/1/201021200.NET Framework: 177. .NET 2.0 Profiler에 .NET 4.0 지원 추가
860정성태4/30/201026274오류 유형: 95. .NET 4.0 설치 오류 - 0x800c0005 [1]
858정성태4/29/201030172제니퍼 .NET: 2. JENNIFER .NET을 이용한 .NET 웹 사이트 모니터링 (2) - 설치 [3]
... [166]  167  168  169  170  171  172  173  174  175  176  177  178  179  180  ...