Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for automated tests in App Distribution #6730

Merged
merged 16 commits into from Feb 6, 2024
Merged

Conversation

lfkellogg
Copy link
Contributor

@lfkellogg lfkellogg commented Jan 30, 2024

Description

Adding --test-devices and related flags to appdistribution:distribute action. This will trigger the new Automated Tester feature.

Scenarios Tested

  • Kick off tests for a release
  • Kick off tests async
  • Kick off tests with username/password
  • Kick off tests with username/password and resource IDs
  • Kick off tests with username but not password (error case)
  • Kick off tests with username resource but not password resource (error case)
  • Kick off tests with username/password resource but not username/password (error case)

Sample Commands

firebase appdistribution:distribute --app <app id> <path> --test-devices <devices>
firebase appdistribution:distribute --app <app id> <path> --test-devices <devices> --test-async
firebase appdistribution:distribute --app <app id> <path> --test-devices <devices> --test-username <user> --test-password <password>
firebase appdistribution:distribute --app <app id> <path> --test-devices <devices> --test-username <user> --test-password <password> --test-username-resource <resource id> --test-password-resource <resource id>

@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (1473c04) 0.00% compared to head (ee32d10) 54.21%.

Files Patch % Lines
src/appdistribution/options-parser-util.ts 88.63% 3 Missing and 2 partials ⚠️
src/appdistribution/client.ts 94.44% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6730       +/-   ##
===========================================
+ Coverage        0   54.21%   +54.21%     
===========================================
  Files           0      349      +349     
  Lines           0    24247    +24247     
  Branches        0     5010     +5010     
===========================================
+ Hits            0    13146    +13146     
- Misses          0     9899     +9899     
- Partials        0     1202     +1202     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lfkellogg lfkellogg requested a review from rebehe January 31, 2024 15:46
@lfkellogg lfkellogg marked this pull request as ready for review January 31, 2024 15:47
@lfkellogg lfkellogg force-pushed the appdistro-tests branch 2 times, most recently from e6d5ee1 to cd4c845 Compare January 31, 2024 15:57
@joehan joehan self-requested a review January 31, 2024 16:33
CHANGELOG.md Show resolved Hide resolved
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code mostly looks good, with a few small style fixes suggested. However, this change needs an approved API proposal since it changes that public API of the CLI. I have some concerns about the API for this command that would be better discussed there. I couldn't find one at go/firebase-api-tracker - could you link one if I missed it, or start one up?

src/appdistribution/client.ts Outdated Show resolved Hide resolved
src/appdistribution/client.ts Outdated Show resolved Hide resolved
src/appdistribution/client.ts Outdated Show resolved Hide resolved
src/appdistribution/client.ts Outdated Show resolved Hide resolved
src/appdistribution/options-parser-util.ts Outdated Show resolved Hide resolved
src/appdistribution/options-parser-util.ts Outdated Show resolved Hide resolved
src/commands/appdistribution-distribute.ts Show resolved Hide resolved
src/commands/appdistribution-distribute.ts Outdated Show resolved Hide resolved
src/commands/appdistribution-distribute.ts Outdated Show resolved Hide resolved
@lfkellogg lfkellogg force-pushed the appdistro-tests branch 2 times, most recently from 2df6e0b to 9469c64 Compare February 6, 2024 15:09
@lfkellogg lfkellogg merged commit c95059d into master Feb 6, 2024
35 checks passed
@lfkellogg lfkellogg deleted the appdistro-tests branch February 6, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants