xamarin/Xamarin.Forms

[README] Add more information about getting UI tests running

开放

#5,877 创建于 2019年4月10日

 (2 条评论) (5 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/1 :clock1:good first issuehacktoberfest 🍻help wantedt/housekeeping ♻︎up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I have to say. It took a while before my environment was ready. There are some things missing in the "getting started" section. Especially for running UITest.

First problem was that the test weren't discovered.

  • Either install older version of nunit test adapter extension
  • Or change a setting in Visual Studio I changed the setting in Visual Studio and it worked (due to the fact the correct nunit nuget packages were already added to the project).

Then came another problem while running the UITest. It complained there was no ANDROID_HOME environment variable. Fixed that by adding it.

Then when running the UITest, it complained about not finding the adb. Something todo with mismatching sdk versions. After a quick google I found this: Getting your xamarin uitests to actually work. So I downgraded the platform tools and it finally worked. If that didn't worked, I would have just given up. It was just not worth the hassle.

If all those things were properly documented as possible pittfalls and available in the "getting started" section, it would help alot of starting contributers like me.

Originally posted by @puppetSpace in https://github.com/xamarin/Xamarin.Forms/issues/2381#issuecomment-481236329

贡献者指南