简体   繁体   English

自动保存运行配置android studio

[英]Auto saving run configuration android studio

I am making espresso tests for an android app and I wonder if there's a way to automatically save the run configurations for each test on Android Studio?我正在为一个 android 应用程序进行 espresso 测试,我想知道是否有办法在 Android Studio 上自动保存每个测试的运行配置? ie, is there a way in which each time I run a new test, the configurations will save without me having to manually do so?即,有没有一种方法可以让我每次运行新测试时,无需手动操作即可保存配置?

When you view the run configuration dialog in Android Studio, there should be a "share" checkbox at the top right of the dialog.当您在 Android Studio 中查看运行配置对话框时,对话框的右上角应该有一个“共享”复选框。 If you check this box, it will save the configuration into the .idea folder of the project.如果选中此框,它会将配置保存到项目的 .idea 文件夹中。 See "runConfigurations" folder and the runConfigurations.xml file under .idea.请参阅“runConfigurations”文件夹和 .idea 下的 runConfigurations.xml 文件。 If save or check these files into source control, you will be able to share and reuse these configurations when you import the project again.如果将这些文件保存或检入源代码管理,您将能够在再次导入项目时共享和重用这些配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM