Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

improve codebase: add unit testing #514

Closed

Conversation

molecula451
Copy link
Member

Resolves #176

@netlify
Copy link

netlify bot commented Jul 16, 2023

Deploy Preview for ubiquibot-staging ready!

Name Link
🔨 Latest commit 37ede7f
🔍 Latest deploy log https://app.netlify.com/sites/ubiquibot-staging/deploys/64c45d32f3b545000885c6eb
😎 Deploy Preview https://deploy-preview-514--ubiquibot-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

0x4007
0x4007 previously approved these changes Jul 16, 2023
Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

This seems like a pretty solid start. Thanks for your high quality first time contribution to this repository @molecula451 !

@0x4007 0x4007 requested a review from rndquu July 16, 2023 19:11
Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

I reviewed my specification and I still think we should consider setting up a GitHub Actions Docker runtime. I haven't done a deep dive on researching these matters so I'm not 100% confident on the best way forward. The business problem I am aiming to solve is to minimize or eliminate the reliance on our manual quality assurance processes.

The worst is when pull requests pass reviews, and then bugs appear in staging/production.

@rndquu @molecula451 curious on your input here.

Copy link
Member

@rndquu rndquu left a comment

Choose a reason for hiding this comment

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

Pls add more tests along with CI test workflow

@rndquu
Copy link
Member

rndquu commented Jul 17, 2023

I reviewed my specification and I still think we should consider setting up a GitHub Actions Docker runtime. I haven't done a deep dive on researching these matters so I'm not 100% confident on the best way forward. The business problem I am aiming to solve is to minimize or eliminate the reliance on our manual quality assurance processes.

The worst is when pull requests pass reviews, and then bugs appear in staging/production.

@rndquu @molecula451 curious on your input here.

The business problem I am aiming to solve is to minimize or eliminate the reliance on our manual quality assurance processes

We plan to go step by step:

  1. Unit tests
  2. Functional tests (perhaps using docker)

@molecula451
Copy link
Member Author

We plan to go step by step:

  1. Unit tests
  2. Functional tests (perhaps using docker)

CI already working and testing on https://github.com/ubiquity/ubiquibot/actions/runs/5574793016/jobs/10183863908

Adding and polishing more tests

@molecula451
Copy link
Member Author

molecula451 commented Jul 17, 2023

I reviewed my specification and I still think we should consider setting up a GitHub Actions Docker runtime. I haven't done a deep dive on researching these matters so I'm not 100% confident on the best way forward. The business problem I am aiming to solve is to minimize or eliminate the reliance on our manual quality assurance processes.

The worst is when pull requests pass reviews, and then bugs appear in staging/production.

@rndquu @molecula451 curious on your input here.

and I am in pair with that vision, but a reminder that's why you have @rndquu and I for the good QA and making sure things work as of highest standard

describe("Help", () => {
it("should generate log menu", () => {
const helpMenu = generateHelpMenu();
expect(helpMenu).toBeTruthy();
Copy link
Member Author

@molecula451 molecula451 Jul 29, 2023

Choose a reason for hiding this comment

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

this truthy it's better on this one as generateHelpMenu() output is prone to change

@0x4007 0x4007 added ping and removed ping labels Aug 9, 2023
@0x4007
Copy link
Member

0x4007 commented Aug 16, 2023

Stale

@0x4007 0x4007 closed this Aug 16, 2023
@molecula451
Copy link
Member Author

molecula451 commented Aug 16, 2023

@pavlovcik this was not at all stale thing is rndquu changed the game of the original description which was to create an initial base for unit testing ive opened the PR before the asked changed. That i stale a bit. But then i reincorporate and i was desigining a Payload mock testing for the commands this is not trivial and was taking time

@0x4007
Copy link
Member

0x4007 commented Aug 16, 2023

The last update on this was 19 days ago. It doesn't look like it's being worked on anymore which is why I closed it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit Testing
3 participants