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

avoid loading local customization in the test environment #170

Merged

Conversation

stefanotorresi
Copy link
Collaborator

@stefanotorresi stefanotorresi commented Nov 5, 2020

I'm not sure if this is the proper way to go about this, but I don't think the tests should be affected by local customizations.

Another approach could be to set BLUE_HORIZON_CUSTOMIZER to a checked-in file, dedicated to the test environment, but there are no actual customization needed at the moment. I guess we could just put an empty json file somewhere, though.

I'm open to suggestions!

@stefanotorresi stefanotorresi force-pushed the avoid-customization-in-tests branch 2 times, most recently from 181631d to 5e08496 Compare November 5, 2020 12:45
@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

Merging #170 (7949176) into master (39114e2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #170   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          645       645           
=========================================
  Hits           645       645           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39114e2...9f58564. Read the comment docs.

@bear454
Copy link
Collaborator

bear454 commented Nov 9, 2020

I prefer the alternative you posted in the description; in general I'd prefer the test suite bend over backwards to fit the app, rather than modifying the app for testing convenience.

move the test customizer setting after Rails is loaded

avoid implicit conversion error

cs fix
@stefanotorresi
Copy link
Collaborator Author

@bear454 makes total sense! Updated accordingly.

@bear454
Copy link
Collaborator

bear454 commented Nov 11, 2020

This bit me yesterday, in testing the top menu. Thanks for fixing this!

@bear454 bear454 merged commit 2c330b0 into SUSE-Enceladus:master Nov 11, 2020
@stefanotorresi stefanotorresi deleted the avoid-customization-in-tests branch November 11, 2020 15:49
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