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

Ajouter une logique de test #27

Open
emilienschultz opened this issue Jul 10, 2022 · 7 comments
Open

Ajouter une logique de test #27

emilienschultz opened this issue Jul 10, 2022 · 7 comments

Comments

@emilienschultz
Copy link
Owner

No description provided.

@emilienschultz
Copy link
Owner Author

ajout d'un fichier test_pyshs avec les premiers tests. @Carreau est-ce que la logique est bonne ?

@Carreau
Copy link
Collaborator

Carreau commented Jul 10, 2022

Oui, test_pyshs.py c'est bon, mais tu l'as appelé tests_pyshs.py (pluriel).

J'ai corrigé, etcorrigé les fixtures aussi, plus les type(...) == ... en isinstance(..., ...).

Notons que pour lancer les tests, il faut juste faire pytest dans un shell, plutot que utiliser if __name__ == "__main__" pour multiple raisons.

@Carreau
Copy link
Collaborator

Carreau commented Jul 10, 2022

I would suggest for you to setup https://app.codecov.io/gh/emilienschultz/pyshs-bib ( I can't do it for you it's your account), it should give you a badge that tell you the percentage of the library that is tested.

I've setup github action to automatically tests the library on each pull request.

@emilienschultz
Copy link
Owner Author

I moved the tests in a test file : does this have a consequences on the automatization of the test ?
(where do you configure the test on github)
Thanks !!

@Carreau
Copy link
Collaborator

Carreau commented Jul 10, 2022 via email

@emilienschultz
Copy link
Owner Author

@Carreau je ne sais pas ce que j'ai cassé mais les tests échouent (ils passent sur ma machine). Une idée ?

@emilienschultz
Copy link
Owner Author

Nevermind, corrigé, mais je ne comprends pas pourquoi pytest passait en local vu qu'il y avait une erreur.

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

No branches or pull requests

2 participants