Concordion NUnit 在发现测试时抛出 NullReferenceException
Concordion NUnit throws NullReferenceException when discovering test
我是 Concordion 的新手,刚开始尝试。
我在 https://github.com/concordion/concordion-net-kickstart/releases/tag/v1.2.0 下载了他们的示例 "Kickstart" 项目,我还创建了自己的项目以更好地了解它的工作原理。
当我尝试 运行 在 Kickstart 项目和我自己创建的项目中进行测试时,我遇到了同样的错误:
NUnit VS Adapter 2.0.0.0 发现测试已启动
异常 System.NullReferenceException,在 C:\Users......\concordion-net-kickstart-1.2.0\Kickstart.Spec\bin\Debug\Kickstart.Spec.dll 中发现测试时抛出异常
NUnit VS Adapter 2.0.0.0 发现测试完成
我不确定为什么会这样,或者是什么原因造成的,因为我 运行 他们的示例项目直接开箱即用,即便如此,它还是抛回了与我自己创建的项目相同的异常.
恭喜您完成了第一次 Concordion.NET 测试。
不幸的是,NUnit 测试适配器 (https://github.com/nunit/nunit-vs-adapter/issues/9) 存在问题,无法加载 NUnit 插件,例如用于 运行 Concordion.NET 测试的插件。
如 Concordion 网站所述,有一个解决方法可以 运行 Concordion.NET 使用 NUnit 测试适配器进行测试:
http://concordion.org/dotnet/RunningTests.html#test-adapter
您可以使用另一个 NUnit 客户端来 运行 Concordion.NET 测试:
- ReSharper:http://concordion.org/dotnet/RunningTests.html#resharper
- TestDriven.NET: http://concordion.org/dotnet/RunningTests.html#testdriven.net
- NUnit GUI 运行程序:http://concordion.org/dotnet/RunningTests.html#stand-alone
希望您喜欢 Concordion.NET。
请不要犹豫,提出任何进一步的问题。
我是 Concordion 的新手,刚开始尝试。
我在 https://github.com/concordion/concordion-net-kickstart/releases/tag/v1.2.0 下载了他们的示例 "Kickstart" 项目,我还创建了自己的项目以更好地了解它的工作原理。
当我尝试 运行 在 Kickstart 项目和我自己创建的项目中进行测试时,我遇到了同样的错误:
NUnit VS Adapter 2.0.0.0 发现测试已启动 异常 System.NullReferenceException,在 C:\Users......\concordion-net-kickstart-1.2.0\Kickstart.Spec\bin\Debug\Kickstart.Spec.dll 中发现测试时抛出异常 NUnit VS Adapter 2.0.0.0 发现测试完成
我不确定为什么会这样,或者是什么原因造成的,因为我 运行 他们的示例项目直接开箱即用,即便如此,它还是抛回了与我自己创建的项目相同的异常.
恭喜您完成了第一次 Concordion.NET 测试。
不幸的是,NUnit 测试适配器 (https://github.com/nunit/nunit-vs-adapter/issues/9) 存在问题,无法加载 NUnit 插件,例如用于 运行 Concordion.NET 测试的插件。
如 Concordion 网站所述,有一个解决方法可以 运行 Concordion.NET 使用 NUnit 测试适配器进行测试: http://concordion.org/dotnet/RunningTests.html#test-adapter
您可以使用另一个 NUnit 客户端来 运行 Concordion.NET 测试:
- ReSharper:http://concordion.org/dotnet/RunningTests.html#resharper
- TestDriven.NET: http://concordion.org/dotnet/RunningTests.html#testdriven.net
- NUnit GUI 运行程序:http://concordion.org/dotnet/RunningTests.html#stand-alone
希望您喜欢 Concordion.NET。 请不要犹豫,提出任何进一步的问题。