小编Pou*_*efi的帖子

JetBrains Resharper 9 Ultimate Test Runner错误:NUnit.Core.UnsupportedFrameworkException:跳过加载程序集{MyAssembly}

这似乎是JetBrains Resharper 9.1 Ultimate Test Runner引用旧版NUnit的错误.我在我的程序集中使用NUnit 3.0.

[Window Title]
Unit Test Runner

[Main Instruction]
Unit Test Runner failed to run tests

[Expanded Information]
at NUnit.Core.Builders.TestAssemblyBuilder.GetCandidateFixtureTypes(Assembly assembly, String ns)
at NUnit.Core.Builders.TestAssemblyBuilder.GetFixtures(Assembly assembly, String ns)
at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
at NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
at NUnit.Core.SimpleTestRunner.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Core.RemoteTestRunner.Load(TestPackage package)
at JetBrains.ReSharper.UnitTestRunner.nUnit.BuiltInNUnitRunner.RunTests(IRemoteTaskServer server, Dictionary`2 tests, Dictionary`2 fixtures, List`1 explicitly, Boolean useAddins, List`1 assemblies)
Run Code Online (Sandbox Code Playgroud)

编辑:问题消失了升级到Resharper的第10版.

nunit jetbrains-ide test-runner resharper-8.0

40
推荐指数
2
解决办法
1万
查看次数

在 Amazon Redshift 上管理 LISTAGG 中的溢出

使用这篇文章中的示例:https : //blogs.oracle.com/datawarehousing/entry/managing_overflows_in_listagg

以下声明:

SELECT
deptno,
LISTAGG(ename, ';') WITHIN GROUP (ORDER BY empno) AS namelist 
FROM emp 
GROUP BY deptno;
Run Code Online (Sandbox Code Playgroud)

将生成以下输出:

DEPTNO     NAMELIST
---------- ----------------------------------------
10         CLARK;KING;MILLER
20         SMITH;JONES;SCOTT;ADAMS;FORD
30         ALLEN;WARD;MARTIN;BLAKE;TURNER;JAMES
Run Code Online (Sandbox Code Playgroud)

让我们假设上面的语句没有运行,并且我们的 LISTAGG 函数中的每一行都可以返回 15 个字符的限制。这实际上是 Amazon Redshift 上的 65535。

在这种情况下,我们希望返回以下内容:

DEPTNO     NAMELIST
---------- ----------------------------------------
10         CLARK;KING
10         MILLER
20         SMITH;JONES
20         SCOTT;ADAMS
20         FORD
30         ALLEN;WARD
30         MARTIN;BLAKE
30         TURNER;JAMES 
Run Code Online (Sandbox Code Playgroud)

在 Amazon Redshift 中重新创建此结果以避免任何数据丢失并考虑速度的最佳方法是什么?

amazon-redshift listagg

8
推荐指数
1
解决办法
3329
查看次数

为什么TortoiseHg会在提交时随机大写我的文件名?

该文件未在目录中大写.没有任何迹象表明该文件与任何其他文件不同.然而,在提交时,文件名大写,包括类型"CS".那是怎么回事?

mercurial tortoisehg

6
推荐指数
1
解决办法
304
查看次数

在我的ubuntu服务器上运行conda install作为管理员,我得到"缺少写权限:/ home/ubuntu/anaconda3"

我在我的ubuntu服务器上安装了Anaconda3.当我尝试使用conda安装或升级任何软件包时,例如:

conda install numpy=1.11.0
Run Code Online (Sandbox Code Playgroud)

(当然你不能做"sudo conda")

我收到以下错误:

Error: Missing write permissions in: /home/ubuntu/anaconda3
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/home/ubuntu/anaconda3'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone=/home/ubuntu/anaconda3
Run Code Online (Sandbox Code Playgroud)

python-3.x anaconda conda ubuntu-14.04

2
推荐指数
1
解决办法
5747
查看次数

何时更新Structuremap.MVC5 nuget包以支持Structuremap 4.x?

如果安装了StructureMap.MVC5 nuget包,并更新了structuremap nuget包,则ControllerConvention类将要求您实现ScanTypes方法(来自更新的IRegistrationConvention接口).这是方法签名:

public void ScanTypes(TypeSet types, Registry registry)
Run Code Online (Sandbox Code Playgroud)

所以我的问题是,

  1. 是否会有一个更新版本的StructureMap.MVC5 nuget包?
  2. 我应该如何实施该方法?

谢谢.

structuremap nuget asp.net-mvc-5

1
推荐指数
1
解决办法
1316
查看次数