看到项目里边有个android test目录,就直接点了运行。

1. 整体感觉就是又把app重新安装了一下

2. 然后运行了一个@test做修饰的测试函数,用assert做了判断。

发现了一堆导入,目测是最后一行的junit的判定。

import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

 

手机andriod 开发---android test的执行

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2021-11-17
  • 2021-10-31
  • 2021-05-08
  • 2021-04-10
  • 2021-05-16
  • 2021-11-25
猜你喜欢
  • 2022-01-13
  • 2021-12-01
  • 2021-12-09
  • 2021-12-23
  • 2021-05-13
  • 2021-11-03
  • 2021-10-07
相关资源
相似解决方案