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

Unit Tests #17

Open
1 of 11 tasks
pbui opened this issue Sep 30, 2020 · 2 comments
Open
1 of 11 tasks

Unit Tests #17

pbui opened this issue Sep 30, 2020 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@pbui
Copy link
Owner

pbui commented Sep 30, 2020

Modifying bobbit can be a bit tricky because of the lack of tests. Fortunately, bobbit-0.2.x was redesigned to make it easier to test locally (ie. without an actual connection to a network). That said, there are only a few unit tests for some modules, and not unit tests for the package itself.

I would like to add unit tests for as many parts of bobbit as possible:

  • bobbit.bot
  • bobbit.config
  • bobbit.history
  • bobbit.message
  • bobbit.utils
  • bobbit.protocol.irc
  • bobbit.protocol.local
  • bobbit.protocol.slack
  • bobbit.modules.events
  • bobbit.modules.feeds
  • bobbit.modules.tweets

I would like to use a mixture of doctests and unittests.

@pbui pbui added help wanted Extra attention is needed good first issue Good for newcomers labels Sep 30, 2020
@shawalli
Copy link
Contributor

shawalli commented Oct 4, 2020

I can help with this...any reason you don't want to use pytest? It is compatible with unittest, and has many convenience features, such as temporary directories per test

@pbui
Copy link
Owner Author

pbui commented Oct 4, 2020

@shawalli I don't like to bring in too many external dependencies and prefer to stick to the standard library when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants