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

Improve test detection #310

Open
dgarijo opened this issue Sep 19, 2021 · 0 comments
Open

Improve test detection #310

dgarijo opened this issue Sep 19, 2021 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@dgarijo
Copy link
Collaborator

dgarijo commented Sep 19, 2021

At the moment, tests will be recognized if:

  • Any of the test frameworks we know are used.
  • If a class is defined with asserts
  • If any defined function has asserts
  • If the body has asserts

However, if the test imports another class where the validation is performed, we do not detect it as a test right now. This is not very common, but we should consider it too. Annotated as a TO DO in cli.py (ast_if_test function)

@dgarijo dgarijo self-assigned this Sep 19, 2021
@dgarijo dgarijo added enhancement New feature or request bug Something isn't working labels Sep 19, 2021
@dgarijo dgarijo added this to the v0.0.1 milestone Sep 24, 2021
@dgarijo dgarijo modified the milestones: v0.0.1, v0.0.2 Jan 20, 2022
@dgarijo dgarijo modified the milestones: v0.0.2, v0.0.3 Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant