我已使用以下网址为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
任何建议?
我们最近迁移到marklogic-unit-test-1.0.0时遇到了这个问题。借助MarkLogic专家之一,可以解决此问题。如果这仍然是问题让我们知道。