【问题标题】:mlUnitTest not working for MarkLogic Unit TestingmlUnitTest 不适用于 MarkLogic 单元测试
【发布时间】:2019-03-21 19:33:27
【问题描述】:

我已经使用以下网址为 Marklogic 设置了 UnitTetsing 框架-

https://github.com/marklogic-community/marklogic-unit-test

我能够使用mlDeploy 部署我的项目并能够使用mlUnitTestLoadModules 加载我的测试模块,但是在从gradle mlUnitTest 运行测试用例时,我收到以下错误-

Task ':mlUnitTest' is not up-to-date because:
Task has not declared any outputs.
Releasing connection

:mlUnitTest (Thread[Daemon worker Thread 16,5,main]) completed. Took 0.064 secs


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mlUnitTest'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to
get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org 

有什么建议吗??

【问题讨论】:

  • 你能运行“gradle mlUnitTest --stacktrace”并发布堆栈跟踪吗?

标签: unit-testing xquery marklogic marklogic-dhf


【解决方案1】:

我们最近在迁移到 marklogic-unit-test-1.0.0 时遇到了这个问题。感谢 MarkLogic 专家之一,有一个解决方法。如果这仍然是一个 问题让我们知道。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-13
    • 1970-01-01
    • 1970-01-01
    • 2012-07-23
    相关资源
    最近更新 更多