[英]How can I run a single Android Test using Kotlin?
I am using Kotlin 1.0.3 for Android Development in Unit Testing but when I try to run a single test it runs all tests of the class. 我在单元测试中使用Kotlin 1.0.3进行Android开发,但是当我尝试运行单个测试时,它会运行该类的所有测试。 Does anyone know how to avoid that behaviour? 有谁知道如何避免这种行为?
There's an issue with the IntelliJ Platform that causes the tests for the entire class to be executed if you try to run a single test method and have an existing run configuration for the entire class. IntelliJ平台存在一个问题 ,如果您尝试运行单个测试方法并且整个类具有现有的运行配置,则会导致执行整个类的测试。
To run a single method, you need to delete the configuration for the entire class using the Run | 要运行单个方法,您需要使用Run |删除整个类的配置 Edit Configurations... action. 编辑配置...操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.