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 pytest for utils #50

Open
kkuehlz opened this issue Jul 8, 2018 · 5 comments
Open

Add pytest for utils #50

kkuehlz opened this issue Jul 8, 2018 · 5 comments

Comments

@kkuehlz
Copy link
Member

kkuehlz commented Jul 8, 2018

Since the slackbridge is arguably becoming one of the most important internal ocf projects we should add unit tests for utils and, where possible, move more functionality that can be tested into utils.

We can also add one of those fancy coverage buttons to the project too.

@abizer
Copy link
Member

abizer commented Jul 9, 2018

perhaps we can also generalize the slackbridge and offer it to the wider community for people with similar setups as us.

@ethanhs
Copy link
Member

ethanhs commented Jul 9, 2018

perhaps we can also generalize the slackbridge and offer it to the wider community for people with similar setups as us.

I think that deserves a separate issue, or ten.

We can also add one of those fancy coverage buttons to the project too.

Research has found that coverage testing isn't particularly effective at finding bugs. So while it has a nice badge, it would be much more effective to add type checking. Mypy has a fancy badge too now :)

@kkuehlz
Copy link
Member Author

kkuehlz commented Jul 9, 2018

@ethanhs I agree. And while I definitely think any future OCF project (or even new python scripts in puppet) could benefit from type checking, I don't really feel like doing this for slackbridge.

I do think we are getting slightly off topic. We should create new issues for both of these concerns.

@dkess
Copy link
Member

dkess commented Mar 18, 2019

I'm thinking of closing this issue, since we do now have type checking in slackbridge, and I am skeptical that we would be able to write good unit tests for this. Anyone else have thoughts?

@kkuehlz
Copy link
Member Author

kkuehlz commented Mar 18, 2019

Types are orthogonal to unit tests. The unit tests would just be for the utils file, which we would be able to write good tests for. We can easily write tests for irc message formatting, nick stripping, etc.

It's not high priority. But i dont see any benefit in closing the 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

4 participants