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

Configure and implement Pytest #68

Closed
8 tasks done
arthurTemporim opened this issue Feb 12, 2020 · 6 comments · Fixed by #69
Closed
8 tasks done

Configure and implement Pytest #68

arthurTemporim opened this issue Feb 12, 2020 · 6 comments · Fixed by #69
Assignees
Labels
enhancement New feature or request python Pull requests that update Python code
Milestone

Comments

@arthurTemporim
Copy link
Collaborator

arthurTemporim commented Feb 12, 2020

This issue aims to configure a unit tests tool.

Tasks:

  • Define a test tool (probably pytest)
  • Configure it locally
  • Add tests to CI
  • Add badge of project coverage
  • Create the first test of the project

Is important too:

@arthurTemporim arthurTemporim added enhancement New feature or request python Pull requests that update Python code labels Feb 12, 2020
@arthurTemporim arthurTemporim self-assigned this Feb 12, 2020
@arthurTemporim
Copy link
Collaborator Author

arthurTemporim commented Feb 12, 2020

After a quick search I guess the best testing tool is pytest
This was the source that I used: PythonTestingToolsTaxonomy

@arthurTemporim
Copy link
Collaborator Author

The pytest organization of this project followed this tutorial:
Good Practices

@ralphg6 ralphg6 added this to the 0.2.0 milestone Feb 14, 2020
@arthurTemporim arthurTemporim changed the title Configure and implement Unit Tests Configure and implement Pytest Feb 14, 2020
@arthurTemporim
Copy link
Collaborator Author

arthurTemporim commented Feb 14, 2020

To add the test coverage badge to this project is needed an action by the owner @ralphg6.
This project README has the needed steps codecov

  1. Access codecov site and create an account (I made it using my GitHub account) codecov site
  2. Agree with codecov terms
  3. Add David project to codecov list
  4. Use the generated token to link the badge
  5. Add the codecov link to README

I suggest to first make this configuration in test branch and after everything works move it to develop and master.

@arthurTemporim
Copy link
Collaborator Author

Another option is to use this simple and awesome project to generate the badge image:
coverage-badge

After that is just needed to store the badge somewhere in the repository and link it to README.md, some more configurations must be needed in CI tools.

What do you think? 🤔

@ralphg6
Copy link
Collaborator

ralphg6 commented Feb 15, 2020

codecov

[![codecov](https://codecov.io/gh/ralphg6/david/branch/develop/graph/badge.svg)](https://codecov.io/gh/ralphg6/david)

@ralphg6
Copy link
Collaborator

ralphg6 commented Feb 15, 2020

I removed codecov integration why Codeclimate already is configurated and he to integrate with the Coverage.py and the integration already was configured.

@arthurTemporim for me, the task 'Add badge of project coverage' was completed by #74.

This was referenced Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants