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

비밀번호

댓글 작성자
 




... 181  182  183  184  185  186  187  188  189  190  [191]  192  193  194  195  ...
NoWriterDateCnt.TitleFile(s)
159정성태9/28/200517171VS.NET IDE: 32. Virtual Server 2005 64bit SP1 Beta 테스트 [2]
163정성태10/3/200515256    답변글 VS.NET IDE: 32.1. 왜...?
158정성태11/14/200517670VS.NET IDE: 31. SQL 2005 - A connection was successfully established with the server
157정성태9/21/200517483기타: 10. SQL2000 설치 시, Invalid Product Key 오류
156정성태9/16/200519454.NET Framework: 43. Wisptis.exe 프로세스
155정성태5/31/200515791.NET Framework: 42. .NET Installer Class에서 Install 메서드 - 설정 사항들 알아내는 코드
154정성태5/13/200514704VS.NET IDE: 30. Windows 2003 for x64에 추가된 레지스트리 Run 노드
152정성태5/5/200518096VC++: 18. VC++ 7.0에서부터 ? : 연산자 처리가 바뀌었습니다.
153정성태5/12/200518235    답변글 VC++: 18.1. VC++ 8.0에서부터 바뀐 CRT 소개
151정성태5/5/200521182VC++: 17. DLL에 export 된 C++ 클래스 멤버 함수 파라미터형 정보 알아내는 방법
150정성태5/5/200522463.NET Framework: 41. 태그 사이의 값을 추출하는 정규식
149정성태5/5/200518887.NET Framework: 40. 데이터그리드에서 콤보박스 쓸 수 있는 방법
148정성태5/5/200519463.NET Framework: 39. DataSet 방식을 RecordSet으로 구현하는 방법.
147정성태5/7/200617054VC++: 16. 클래스 멤버 함수에 대한 포인터를 받는 표현.
146정성태4/29/200516029VS.NET IDE: 29. 네트워크 공유를 다른 사용자 계정으로 다시 로그인을 원하는 경우.
144정성태4/14/200516462VS.NET IDE: 28. Windows 2003 SP1을 설치하고.
143정성태5/5/200517613.NET Framework: 38. DSL (Domain Specific Language)
141정성태4/14/200518551VS.NET IDE: 27. 64bit 컴퓨터 사용 평가 [3]
140정성태4/14/200515635.NET Framework: 37. String.GetHashCode의 리턴값. 그때그때 다릅니다.
138정성태4/12/200516491.NET Framework: 36. 64bit 시스템 구성
142정성태4/14/200517792    답변글 VS.NET IDE: 36.1. 메모리 구성에 대한 추가 내용
137정성태3/31/200522081.NET Framework: 35. XP SP2 팝업 뚫은 소스
135정성태3/31/200520806VS.NET IDE: 26. SQL Server 2000구성이 실패
134정성태3/31/200518009COM 개체 관련: 16. Microsoft.XMLHTTP 개체에서 Microsoft.XMLDOM 개체를 전송할 때 charset 지정 문제? [2]
128정성태3/30/200516380.NET Framework: 34. VC++에서 Managed 타입의 메서드에 BSTR을 넘기는 경우의 오류(!)
129정성태3/30/200518503    답변글 .NET Framework: 34.1. 위의 질문에 대한 답변으로 나온 것입니다.
... 181  182  183  184  185  186  187  188  189  190  [191]  192  193  194  195  ...