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

Test/fixing unit tests #248

Merged
merged 11 commits into from
Sep 29, 2021
Merged

Test/fixing unit tests #248

merged 11 commits into from
Sep 29, 2021

Conversation

seth127
Copy link
Collaborator

@seth127 seth127 commented Sep 28, 2021

Closes #239

babylon.yaml Outdated
@@ -0,0 +1,13 @@
babylon_binary: /usr/local/bin/bbi
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was committed by accident and removed in the next commit

@seth127 seth127 marked this pull request as ready for review September 28, 2021 20:03
@seth127
Copy link
Collaborator Author

seth127 commented Sep 28, 2021

@elisarver feel free to take a look, and to start on #244 as soon as this is merged. But I do think we should have @dpastoor give this a lookover to make sure I didn't remove anything that he thinks should stay.

@seth127
Copy link
Collaborator Author

seth127 commented Sep 28, 2021

@dpastoor I tried to keep the commits pretty clean, in terms of which tests/files they address, so that might be the easier way to go through this, as opposed to looking at the raw file diff view.

Copy link
Contributor

@elisarver elisarver left a comment

Choose a reason for hiding this comment

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

Happy to help with the clean-up ahead of this, good changes.

t.R.Equal(3, len(test.modelOutput.ParametersData[0].RandomEffectSDSE.Omega), "Fail :"+test.context)
setMissingValuesToDefault(&test.modelOutput)
t.R.Equal(7, len(test.modelOutput.ParametersData[0].StdErr.Theta), "Fail :"+test.name)
t.R.Equal(2, len(test.modelOutput.ParametersData[0].RandomEffectSD.Sigma), "Fail :"+test.name)
Copy link
Contributor

Choose a reason for hiding this comment

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

test.name is covered in all of these cases by the tt.Run above. it is reported as Test<Name>/7_thetas_3_omegas_2_sigmas

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah, so can we just get rid of that , "Fail :"+test.name part of each line?

Copy link
Contributor

Choose a reason for hiding this comment

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

yup!

@seth127 seth127 merged commit 8826ea7 into develop Sep 29, 2021
@seth127 seth127 deleted the test/fixing_unit_tests branch September 29, 2021 18:16
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.

fix or delete failing unit tests in bbi repo
2 participants