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

Refactor E2E tests, generate readme #29

Merged
merged 4 commits into from
Aug 17, 2021
Merged

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Aug 17, 2021

Checklist

Context

Part of the initiative to refactor step to new standards.

Changes

  • Generate README.md with generator step
  • Move E2E tests to e2e/bitrise.yml
  • Refactor tests
    • Extract output checking to utility workflows
    • Make tests and output checks independent of each other
    • Remove duplicated tests that clone the sample apps to the root /tmp dir but otherwise test the same things

Investigation details

Decisions

@ofalvai ofalvai closed this Aug 17, 2021
@ofalvai ofalvai reopened this Aug 17, 2021
@ofalvai ofalvai closed this Aug 17, 2021
@ofalvai ofalvai reopened this Aug 17, 2021
e2e/bitrise.yml Outdated
if [ -z "$BITRISE_AAB_PATH" ] ; then echo "BITRISE_AAB_PATH env is empty" ; exit 1 ; fi ;
if [ -z "$BITRISE_AAB_PATH_LIST" ] ; then echo "BITRISE_AAB_PATH_LIST env is empty" ; exit 1 ; fi ;

if [ ! -f $BITRISE_DEPLOY_DIR/$EXPECTED_AAB ] ; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [ ! -f $BITRISE_DEPLOY_DIR/$EXPECTED_AAB ] ; then
if [ ! -f "$BITRISE_DEPLOY_DIR/$EXPECTED_AAB" ] ; then

To prevent unexpected false positives with empty strings (right now i can not be empty tough).

e2e/bitrise.yml Outdated
test_nested_module:
title: Test simple Android project with nested module
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/android-multiple-test-results-sample.git
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- SAMPLE_APP_URL: https://github.com/bitrise-io/android-multiple-test-results-sample.git
- TEST_APP_URL: https://github.com/bitrise-io/android-multiple-test-results-sample.git

As used for example in https://github.com/bitrise-steplib/steps-xcode-test/blob/5de2593fa7291ff3e6bf25b54f061da7ee823713/e2e/bitrise.yml.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, fixed. (I didn't accept this suggestion because there are more instances of this env var in the file)

e2e/bitrise.yml Show resolved Hide resolved
@ofalvai ofalvai merged commit 503e1ba into master Aug 17, 2021
@ofalvai ofalvai deleted the step-1214-unified-refactor branch August 17, 2021 15:30
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.

2 participants