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

test: unit tests for api layer #4161

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

test: unit tests for api layer #4161

wants to merge 12 commits into from

Conversation

mateo-ivc
Copy link
Contributor

Description

Implemented unittests for api/columns.go

Changelog

api/columns_test.go

  • Added tests for the various functions in api/columns.go

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • The light- and dark-theme are both supported and tested
  • The design was implemented and is responsive for all devices and screen sizes
  • The application was tested in the most commonly used browsers (e.g. Chrome, Firefox, Safari)

(Optional) Visual Changes

@mateo-ivc mateo-ivc changed the title Mi/add api tests test: unittests for api layer May 23, 2024
@mateo-ivc mateo-ivc changed the title test: unittests for api layer test: unit tests for api layer May 23, 2024
Copy link

octomind-dev bot commented May 23, 2024

🐙 Octomind

Test Report: 0/14 successful.

description status details
About Section Visibility Test Failed ❌ click
change avatar Failed ❌ click
check Privacy Policy Failed ❌ click
check terms & conditions Failed ❌ click
close cookie banner - front page Failed ❌ click
close cookie banner - sign-in Failed ❌ click
create and delete board columns Failed ❌ click
create_and_delete_notes_and_actions_v2 Failed ❌ click
create lean coffee board Failed ❌ click
edit_notes_and_actions_v5 Failed ❌ click
get started Failed ❌ click
share_session Failed ❌ click
sign-in Failed ❌ click
test all ways to open the setup flow Failed ❌ click

commit sha: 4a58c96

@mateo-ivc mateo-ivc self-assigned this May 23, 2024
Copy link

octomind-dev bot commented May 24, 2024

🐙 Octomind

Test Report: 0/14 successful.

description status details
About Section Visibility Test Failed ❌ click
change avatar Failed ❌ click
check Privacy Policy Failed ❌ click
check terms & conditions Failed ❌ click
close cookie banner - front page Failed ❌ click
close cookie banner - sign-in Failed ❌ click
create and delete board columns Failed ❌ click
create_and_delete_notes_and_actions_v2 Failed ❌ click
create lean coffee board Failed ❌ click
edit_notes_and_actions_v5 Failed ❌ click
get started Failed ❌ click
share_session Failed ❌ click
sign-in Failed ❌ click
test all ways to open the setup flow Failed ❌ click

commit sha: dce444c

This comment has been minimized.

@mateo-ivc mateo-ivc added the Review Needed This pull request is ready for review label Jun 3, 2024
Copy link

@wischoepke wischoepke left a comment

Choose a reason for hiding this comment

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

Why are there no tests for the API files: board_reaction, boards, etc.?"

server/src/api/columns_test.go Show resolved Hide resolved
server/src/api/columns_test.go Outdated Show resolved Hide resolved
server/src/api/columns_test.go Show resolved Hide resolved
server/src/api/columns_test.go Outdated Show resolved Hide resolved
server/src/api/columns_test.go Show resolved Hide resolved
server/src/api/columns_test.go Outdated Show resolved Hide resolved
server/src/api/columns_test.go Outdated Show resolved Hide resolved

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link

@wischoepke wischoepke left a comment

Choose a reason for hiding this comment

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

review is done

mateo-ivc and others added 11 commits January 22, 2025 14:08
in the API layer have been completed.
Next, we still need to implement mockery in all
API tests and delete the manual interfaces

steps to todo:
* remove old manual written interface mock implementation,
* adapt api tests,
* enhance readme for mockery setup.
adapt readme for mockery
TestParameterBundle usage in columns test
Copy link

octomind-dev bot commented Jan 22, 2025

🐙 Octomind

Test Report: 14/14 successful.

description status details
About Section Visibility Test Passed ✅ click
change avatar Passed ✅ click
check Privacy Policy Passed ✅ click
check terms & conditions Passed ✅ click
close cookie banner - front page Passed ✅ click
close cookie banner - sign-in Passed ✅ click
create and delete board columns Passed ✅ click
create_and_delete_notes_and_actions_v2 Passed ✅ click
create lean coffee board Passed ✅ click
edit_notes_and_actions_v5 Passed ✅ click
get started Passed ✅ click
share_session Passed ✅ click
sign-in Passed ✅ click
test all ways to open the setup flow Passed ✅ click

commit sha: 1cb51da

Copy link

The deployment to the dev cluster was successful. You can find the deployment here: https://4161.development.scrumlr.fra.ics.inovex.io
This deployment is only for testing purposes and will be deleted after 1 week.
To redeploy rerun the workflow.
DO NOT STORE IMPORTANT DATA ON THIS DEPLOYMENT

Deployed Images
  • ghcr.io/inovex/scrumlr.io/scrumlr-frontend:sha-ef98d87

  • ghcr.io/inovex/scrumlr.io/scrumlr-server:sha-ef98d87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review Needed This pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants