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

Get unit tests running again in Docker containers #240

Closed
wants to merge 2 commits into from

Conversation

rmunn
Copy link
Collaborator

@rmunn rmunn commented May 20, 2022

Unit tests were failing after switching the LfMerge build to a Dockerized environment. This PR gets them working again, at least on the FW 9 branch. (A separate PR will be needed for the FW 8 branch, of course).

The main change we had to account for was the change to LfMergeSettings and how it now takes environment variables as settings. The LfMergeSettings test doubles now set the vars they need before calling SetAllMembers().

NOTE: This PR does not run unit tests by default in the build, because they take too long (20+ minutes) to be useful. Instead, I intend to create another PR that divides the tests up into fast and slow tests, then runs the fast tests with every PR and allows us to run the slow tests on-demand.


This change is Reviewable

rmunn added 2 commits May 20, 2022 13:24
Main change we had to account for was the change to LfMergeSettings and
how it now takes environment variables as settings. The LfMergeSettings
test doubles now set the vars they need before calling SetAllMembers().
We skip integration tests by default in unit testing. This will be
configurable with a build arg to the Docker container so that we can run
the slow integration tests as well if we want to.
@rmunn
Copy link
Collaborator Author

rmunn commented Aug 19, 2022

This PR's logic was incorporated into #284, which has been merged and released. It's no longer needed.

@rmunn rmunn closed this Aug 19, 2022
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.

1 participant