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 #19

Closed
wants to merge 55 commits into from
Closed

Unit Tests #19

wants to merge 55 commits into from

Conversation

diegomarvid
Copy link
Collaborator

@diegomarvid diegomarvid commented May 18, 2024

In this PR I will create unit tests for the repository. This is what has been done so far:

  • GenerateStep tests ✅
  • Added new unit testing GitHub action for pushing
  • EncodeStep tests ✅
  • TabularSplitStep tests. group_by_columns test is failing. We should fix this.
  • CalculateFeaturesStep tests ✅
  • CalculateMetricsStep tests ✅
  • CleanStep tests ✅
  • Add pipeline test for executing the pipeline without errors.
  • Fix important pipeline errors discovered in the tests.
  • ModelStep tests ✅
  • ModelRegistry tests ✅
  • StepRegistry tests ✅

Run tests

The tests can be run by the command:

pytest

You can run this command to see the test coverage in a HTML report

pytest --cov=pipeline_lib/core --cov-report=html tests/

Or by using the following VS Code extension Recommended

image

image

Current test coverage

image

@diegomarvid diegomarvid self-assigned this May 18, 2024
@diegomarvid diegomarvid force-pushed the unit-test branch 2 times, most recently from acaee31 to 51351c0 Compare May 19, 2024 02:05
@ovejabu ovejabu closed this May 30, 2024
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

Successfully merging this pull request may close these issues.

3 participants