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 option to override Firefox binary used in system tests #5672

Merged

Conversation

AntonKhorev
Copy link
Collaborator

Addresses #5488 by providing a setting instead of workarounds such as modifying test/application_system_test_case.rb.

I'm also using these workarounds and it's annoying because you can accidentally commit them. But if there's a setting, I can put it in some file that's ignored by git, for example in config/settings/test.local.yml (assuming tests run in test environment; teaspoon tests by default don't but you can run them with RAILS_ENV=test bundle exec teaspoon).

@AntonKhorev AntonKhorev added the dx Developer Experience label Feb 14, 2025
@@ -182,3 +182,5 @@ smtp_password: null
# -----BEGIN PRIVATE KEY-----
# ...
# -----END PRIVATE KEY-----
# Override Firefox binary used in system tests
#system_test_firefox_binary:
Copy link
Member

Choose a reason for hiding this comment

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

Can we put this in config/settings/test.yml as it's only for testing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is teaspoon supposed to be run in test environment?

Copy link
Member

Choose a reason for hiding this comment

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

That's actually an excellent question - my answer would be yes, and it doesn't work in my dev environment unless I force it to, but currently there is nothing to make that happen by default.

Copy link
Member

Choose a reason for hiding this comment

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

Actually the github workflow does run it with RAILS_ENV=test set.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved to config/settings/test.yml.

Then we have to update CONTRIBUTING.md to explain how to run teaspoon.

@AntonKhorev AntonKhorev force-pushed the system-test-config-binary branch from 20c7c02 to b58a702 Compare February 15, 2025 15:46
@tomhughes
Copy link
Member

Thanks, this looks good to me now.

@tomhughes tomhughes merged commit f352c1d into openstreetmap:master Feb 15, 2025
21 checks passed
@AntonKhorev AntonKhorev deleted the system-test-config-binary branch February 15, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Developer Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants