[英]How do i execute the ScalaTest testcases written in my Azure Databricks notebook from Azure Devops build/release pipeline
Below is a basic "ScalaTest" testcase I've written in my Azure Databricks Notebook.下面是我在 Azure Databricks Notebook 中编写的基本“ScalaTest”测试用例。 I would like to execute this testcase from Azure DevOps Build or release pipeline and view the test results.
我想从 Azure DevOps Build or release pipeline 执行这个测试用例并查看测试结果。
I searched for resources but no luck(Reference to one of the forums which talks about the same issue: https://social.msdn.microsoft.com/Forums/en-US/5d31ef5b-5b18-4305-ad09-0107e47891be/automated-testing-in-azure-databricks?forum=AzureDataFactory )我搜索了资源但没有运气(参考讨论相同问题的论坛之一: https://social.msdn.microsoft.com/Forums/en-US/5d31ef5b-5b18-4305-ad09-0107e47891be/automated -testing-in-azure-databricks?forum=AzureDataFactory )
import org.scalatest.FunSuite
class SampleTestSuite extends FunSuite
{
test("1 equals 1")
{
assert(1 == 1)
}
}
You could try to run ScalaTest through Maven: ScacleTest Maven plugin您可以尝试通过 Maven 运行 ScalaTest: ScacleTest Maven 插件
Then, it would general Junit test result and you can publish test result file through Publish Test result task .然后,它将通用 Junit 测试结果,您可以通过发布测试结果任务发布测试结果文件。
This thread may benefit you: Scalatest in maven: JUnit results该线程可能会使您受益: maven 中的Scalatest:JUnit 结果
Use AnyFunSuite
instead of FunSuite
使用
AnyFunSuite
而不是FunSuite
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.