腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(100)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
3
回答
如何使用Gradle Kotlin DSL运行
kotlintest
测试?
kotlintest
测试没有运行!它似乎不是由Gradle发现的,因为失败的测试会让Gradle任务成功。所以, import io.
kotlintest
.matchers.exactlyimport io.
kotlintest
.specs.FunSpecclass
KotlinTest<
浏览 0
提问于2018-04-03
得票数 7
回答已采纳
1
回答
kotlintest
/
kotlintest
BehaviorSpec afterSpec/finalizeSpec调用过频繁或根本不调用
我有一个
kotlintest
(以前叫
kotlintest
) BehaviorSpec 它下面有一个Given("...")和多个When("...") Then("...")
浏览 7
修改于2020-09-30
得票数 0
1
回答
Gradle失败:删除
kotlintest
后无法解决: io
如果我添加
kotlintest
并再次同步,则一切正常: compileSdkVersion 29 defaultConfigtestImplementation "io.mockk:mockk:{1.9.3}" androidTestImplementation 'io.
kotlintest
:
kotlintest
-ru
浏览 15
提问于2019-08-02
得票数 1
回答已采纳
2
回答
KotlinTest
也支持TestNG吗?
我可以在TestNG中使用
KotlinTest
吗?我在中只能看到JUnit。
浏览 4
修改于2018-08-03
得票数 0
1
回答
使用springmockk时
Kotlintest
不执行测试
为此,我使用
kotlintest
框架。因为我需要模拟应用程序中的一个bean,所以我还用springmockk扩展添加了mockk。在添加了springmockk扩展之后,测试不再被执行。org.springframework.boot:spring-boot-starter-test:$springBoot_version") { te
浏览 41
修改于2020-07-07
得票数 5
2
回答
带Koin的
KotlinTest
: InvocationTargetException
kotlin-tests-with-koin-examples.gitmvnpackage koinexample import io.
kotlintest
.specs.FreeSpecimport
浏览 24
修改于2020-03-06
得票数 1
回答已采纳
1
回答
在maven中运行
kotlintest
我已经挣扎了一段时间,试图让
kotlintest
测试从maven中正常运行。我不是专家,所以我希望有人能告诉我哪里出了问题。package test import io.
kotlintest
.specs.ShouldSpec class
浏览 1
提问于2018-04-05
得票数 1
回答已采纳
1
回答
带有Mockk的
KotlinTest
并行
因此,我一直在结合mockk使用
kotlintest
,但是通过将其添加到ProjectConfig类中,从单线程模式切换到多个线程模式时遇到了一个问题: override fun parallelism
浏览 5
提问于2020-01-10
得票数 2
回答已采纳
1
回答
Kotlintest
;如何使用抽象testcontainers类
我们有一个用kotlin编写的Spring Boot项目(第一次),其中我们想尝试
kotlintest
来编写测试。@Test em.persist(someObject) 但是,如何将这些测试重写为
kotlintest
在
kotlintest
中,你可以从一个规范(也可以是abstract class)进行扩展,而在kotlin中,据我所知,你不能从多个类进行扩展。那么我该如何将这个测试移植到
kotlintest
上呢?我考虑
浏览 10
提问于2019-09-17
得票数 0
1
回答
如何使用beforeProject在
kotlintest
?
我实现了一个TestListener,如下所示: override fun beforeProject() { } println("integration tests - beforeSpec")}
浏览 0
提问于2018-10-31
得票数 1
回答已采纳
1
回答
在
kotlintest
中调用BehaviorSpec测试的配置
是否可以在
kotlintest
中的BehaviorSpec中配置单个测试用例?但据我所见(使用
kotlintest
的3.1.8版本),Then返回Unit.
浏览 0
修改于2018-11-07
得票数 1
回答已采纳
1
回答
如何用
Kotlintest
和Gradle生成分级测试报告
我正在尝试使用Gradle从
Kotlintest
获得分层测试报告。我看过一些截图,但是,我没有运气。Gradle 5.6.2
Kotlintest
3.4.2 JUnit Platform 1.5.2import io.
kotlintest
.matchers.string.shouldStartWithimport io.
kotlintest
.specs.FunSpec context("Here is a contex
浏览 2
提问于2019-09-23
得票数 1
回答已采纳
1
回答
Kotlintest
中的Autowire TestEntityManager无法正常工作
我正在尝试将Spring Boot的kotlin教程(https://spring.io/guides/tutorials/spring-boot-kotlin/)中描述的测试从使用JUnit 5移植到
KotlinTest
springjuergen", firstname = "Juergen", lastname = "Hoeller") entityManager.persist(juergen) <--- OK 但对于
KotlinT
浏览 32
提问于2019-08-22
得票数 2
1
回答
在
kotlintest
上抓狂的Intellij --
<init>(Reflections.java:168) atio.
kotlintest
.Project.<init>(Project.kt:27) at io.
kotlintest
.KTestJUnitRunner.
浏览 0
修改于2018-04-20
得票数 1
回答已采纳
3
回答
Kotlintest
与Mockk如何清除校验计数
因此,我有以下代码: every { } returns "loc" Th
浏览 4
提问于2019-12-22
得票数 5
回答已采纳
1
回答
Kotlintest
-未解析的引用shouldMatchJson
似乎我不能从Kotlintestv3.4.2访问shouldMatchJson匹配器,这种方式在中有说明。我得到了未解析的引用,似乎无法导入它。代码说它是字符串类的扩展方法,但尝试了字符串,甚至“”{}“”,但无法访问该方法。我做错了什么吗?所有其他匹配器都没问题。 "Test a json" { }
浏览 2
修改于2019-10-14
得票数 0
1
回答
kotlintest
测试spring引导应用程序如何?
spring引导测试的最简单测试如下所示,如何使用
kotlintest
来迁移它?
浏览 0
修改于2018-11-13
得票数 1
回答已采纳
1
回答
Kotlintest
扩展向测试返回信息
JUnit 5有一个整洁的扩展功能,即使它运行在JUnit框架上,它也与
kotlintest
不兼容。虽然我们只需要记录一些东西的简单用例可以由TestListener处理,但我们不能处理更高级的情况。
浏览 7
提问于2019-11-26
得票数 1
3
回答
如何用
kotlintest
编写beforeEach和beforeClass
给出了的例子,但我在这里没有看到beforeEach或beforeClass的概念。我想明白, "length should return size of string" { } "world" should startWi
浏览 0
修改于2021-11-17
得票数 6
回答已采纳
2
回答
Kotlintest
中的数据表测试-高级方法名称和测试用例的传播
我使用
Kotlintest
和data tables来测试一个使用Kotlin、SpringBoot和Gradle的应用程序,因为当你的表中有复杂的数据时,它的语法要比ParameterizedJunitTests为了让事情变得更清楚,用
Kotlintest
举个例子: class AdditionSpec : FunSpec() { assertThat(x + y)
浏览 34
修改于2019-10-10
得票数 3
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
点击加载更多
领券