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

#2003 - Basic e2e tests for the low coverage parts of the application #2012

Merged
merged 24 commits into from
Jun 16, 2023

Conversation

andrepestana-aot
Copy link
Collaborator

@andrepestana-aot andrepestana-aot commented Jun 13, 2023

Created e2e basic tests for:

  • Institution Account Creation
  • Designation Agreement
  • Education Program
  • Offferings

Changed designation agreement factory to create entities with "Approved" status because the tests that create them need that the institution does not have any previous designation agreements with "Pending" status.

Copy link
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @andrepestana-aot for making the minor update. Looks good to me 👍

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work @andrepestana-aot

@@ -29,5 +30,6 @@ export function createFakeEducationProgramOffering(
offering.courseLoad = 45;
offering.hasOfferingWILComponent = "no";
offering.offeringDeclaration = true;
offering.offeringStatus = OfferingStatus.CreationPending;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that looking at the overall purpose of this factory, offering status must be defaulted to approved, with supporting data. IMO Creation pending offering is only useful for those tests which check the initial status of the offering and otherwise we always would need an approved offering.

@dheepak-aot
Copy link
Collaborator

Thanks for adding tests and improving the coverage. Please have a look at the comments.

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing all the changes, looks good 👍

Copy link
Contributor

@ann-aot ann-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @andrepestana-aot 👍 Thanks for doing the changes. I think you missed one comment #2012 (comment), please take a look

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 17.9% ( 2106 / 11768 )
Methods: 8.27% ( 124 / 1500 )
Lines: 20.67% ( 1844 / 8923 )
Branches: 10.26% ( 138 / 1345 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 49.81% ( 267 / 536 )
Methods: 41.56% ( 32 / 77 )
Lines: 55.33% ( 218 / 394 )
Branches: 26.15% ( 17 / 65 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 69.4% ( 390 / 562 )
Methods: 59.15% ( 42 / 71 )
Lines: 71.52% ( 344 / 481 )
Branches: 40% ( 4 / 10 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 49.6% ( 3454 / 6964 )
Methods: 44.65% ( 401 / 898 )
Lines: 54.84% ( 2850 / 5197 )
Branches: 23.36% ( 203 / 869 )

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing the changes. 👍

@andrepestana-aot andrepestana-aot merged commit c74bfef into main Jun 16, 2023
@andrepestana-aot andrepestana-aot deleted the 2003_basic_e2e_tests_low_coverage branch June 16, 2023 16:37
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:53 — with GitHub Actions Inactive
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:54 — with GitHub Actions Inactive
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:54 — with GitHub Actions Inactive
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:54 — with GitHub Actions Inactive
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:54 — with GitHub Actions Inactive
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:56 — with GitHub Actions Inactive
@andrepestana-aot andrepestana-aot temporarily deployed to DEV June 16, 2023 16:56 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2e - Basic tests for the low coverage parts of the application
6 participants