problem with <nunit2> task using nant 0.92 and teamcity 7.0.3
I'm trying to migrate our builds from our old build toolsto a brand new teamcity 7.0.3. We have a bunch of nant script also executing unit test using the <nunit2> nant task.
The full configuration is ;
- nant 0.92
- nunit 2.6
- teamcity 7.0.3
- build in .net 3.5
- running under winxp
in the build process when comming to unit test I get the following error :
[15:35:40][call] Method not found: 'NAnt.NUnit.Types.FormatterElementCollection NAnt.NUnit2.Tasks.NUnit2Task.get_FormatterElements()'. System.MissingMethodException: Method not found: 'NAnt.NUnit.Types.FormatterElementCollection NAnt.NUnit2.Tasks.NUnit2Task.get_FormatterElements()'.
at JetBrains.BuildServer.NAntLoggers.NUnit2LoggingTask.NUnit2TaskEx.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Tasks.CallTask.ExecuteTask() at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Tasks.CallTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
[15:35:40]Process exited with code 1
[15:35:40]NAnt output
[15:35:40][NAnt output] end.log.daily:
[15:35:40][NAnt output]
[15:35:40][NAnt output]
[15:35:40][NAnt output] BUILD FAILED - 0 non-fatal error(s), 1 warning(s)
[15:35:40][NAnt output]
[15:35:40][NAnt output] INTERNAL ERROR
[15:35:40][NAnt output]
[15:35:40][NAnt output] System.MissingMethodException: Method not found: 'NAnt.NUnit.Types.FormatterElementCollection NAnt.NUnit2.Tasks.NUnit2Task.get_FormatterElements()'.
[15:35:40][NAnt output] at JetBrains.BuildServer.NAntLoggers.NUnit2LoggingTask.NUnit2TaskEx.ExecuteTask()
[15:35:40][NAnt output] at NAnt.Core.Task.Execute()
[15:35:40][NAnt output] at NAnt.Core.TaskContainer.ExecuteChildTasks()
[15:35:40][NAnt output] at NAnt.Core.Tasks.IfTask.ExecuteTask()
[15:35:40][NAnt output] at NAnt.Core.Task.Execute()
[15:35:40][NAnt output] at NAnt.Core.Target.Execute()
[15:35:40][NAnt output] at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
[15:35:40][NAnt output] at NAnt.Core.Tasks.CallTask.ExecuteTask()
[15:35:40][NAnt output] at NAnt.Core.Task.Execute()
[15:35:40][NAnt output] at NAnt.Core.Target.Execute()
[15:35:40][NAnt output] at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
[15:35:40][NAnt output] at NAnt.Core.Tasks.CallTask.ExecuteTask()
[15:35:40][NAnt output] at NAnt.Core.Task.Execute()
[15:35:40][NAnt output] at NAnt.Core.Target.Execute()
[15:35:40][NAnt output] at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
[15:35:40][NAnt output] at NAnt.Core.Project.Execute()
[15:35:40][NAnt output] at NAnt.Core.Project.Run()
[15:35:40][NAnt output]
[15:35:40][NAnt output] Please send bug report to ############
i've tried a bunch of things like seting properties in our nant script
<property name="teamcity.dotnet.nant.nunit2.platformVersion" value="v2.0" />
<property name="teamcity.dotnet.nant.nunit2.version" value="NUnit-2.6.0" />
then tring to override nunit2 task replacement
<property name="teamcity.dotnet.nant.replaceTasks" value="false" />
and still getting the same error code.
any idea about this ?
thanks
Please sign in to leave a comment.
Please vote for http://youtrack.jetbrains.com/issue/TW-21698
Please try
http://confluence.jetbrains.net/display/TCD7/TeamCity+NUnit+Test+Launcher
or
http://confluence.jetbrains.net/display/TCD7/TeamCity+Addin+for+NUnit
as workaround.
I'll fix the original issue as part of NAnt 0.92 support issue