Skip to content

promote logger and writer mock objects from pathfinder utils #3194

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

Open
bob-carpenter opened this issue Jun 4, 2023 · 6 comments
Open

promote logger and writer mock objects from pathfinder utils #3194

bob-carpenter opened this issue Jun 4, 2023 · 6 comments

Comments

@bob-carpenter
Copy link
Member

Summary:

There are some generally useful testing classes in src/test/unit/services/pathfinder/util.hpp that'd be useful higher up. At that point, they should be renamed to something like mock_writer and mock_logger.

Description:

Also add doc.

Current Version:

v2.32.2

@kaifkh20
Copy link

kaifkh20 commented Jul 1, 2023

Is this issue still open?

@mitzimorris
Copy link
Member

yes it is still open.

it looks like this is your first time contributing to Stan. a few requests

@ChehakTrehan
Copy link

Hii @bob-carpenter is this issue still open? I would like to work on it

@bob-carpenter
Copy link
Member Author

I don't think anything's been done for this yet. In fact, I'm not entirely sure what I was asking for here. So it'd probably be best to start by clarifying the issue a bit. @andrjohns and @mitzimorris and @SteveBronder---you've been working on a lot of the Stan services layer so will probably have the best take on what to do here.

@mitzimorris
Copy link
Member

is this a good first issue?

I'm not sure what this issue is about either, but I do know that writing unit tests for any part of the stan::services layer is quite challenging. a first step would be to review all of the "utils.hpp" files under stan/test/unit as well as tests for stan::services::sample to see what has been mocked up across the unit tests and what is missing.

@SteveBronder just did another refactor of Pathfinder - maybe he can comment.

I'm working on a PR now on the Stan callbacks, and am writing unit tests which would greatly benefit from something like this.

@SteveBronder
Copy link
Collaborator

Those classes are a little nasty and made mostly for some simple cases. I think we if we need mock writer / callbacks at some point we can pull them out and clean them up, but for now idt this is an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants