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 cases for basic template. #27

Open
2 tasks
Abhinav-ark opened this issue Nov 2, 2024 · 6 comments · May be fixed by #58
Open
2 tasks

Test cases for basic template. #27

Abhinav-ark opened this issue Nov 2, 2024 · 6 comments · May be fixed by #58
Assignees
Labels
AMWOC BOUNTY-50 enhancement New feature or request feature Planned feature of software. good first issue Good for newcomers

Comments

@Abhinav-ark
Copy link
Member

Abhinav-ark commented Nov 2, 2024

Todo:

  • Optimize test case execution time for basic template.
  • Write tests to verify each api endpoint.
@Ashrockzzz2003 Ashrockzzz2003 added enhancement New feature or request feature Planned feature of software. good first issue Good for newcomers labels Nov 2, 2024
@Ashrockzzz2003 Ashrockzzz2003 changed the title Test cases for Basic template. Test cases for basic template. Nov 6, 2024
@venkatesh21bit
Copy link

venkatesh21bit commented Dec 24, 2024

@Abhinav-ark @Ashrockzzz2003 I would like to contribute to this issue, so it would be great if u could assign me

@Ashrockzzz2003
Copy link
Member

@venkatesh21bit
Sure
This is different kind of an issue. You've to propose the way you're gonna approach this before you actually code. Write up a proposal on your idea for the same and link it here in the issue. If it gets approved, you can code. This issue is assigned to you to ensure only you're working on it.

@venkatesh21bit
Copy link

It seems the init.test.js takes more than 5s and gives out an EBUSY error
Screenshot 2024-12-24 220824
We can ensure that the directory is not in use before attempting to remove it. Additionally, you can add a retry mechanism to handle transient issues.

@venkatesh21bit
Copy link

venkatesh21bit commented Dec 24, 2024

To Write Tests for Each API Endpoint:
--There is jest mentioned in the package.json file we can use that
--Write test cases to verify the functionality of each API endpoint.
--this can be done by requesting get and see whether it expects the "HelloWorld!"
To optimize the test case execution time I gave the idea in the previous comment

@Ashrockzzz2003
Copy link
Member

It seems the init.test.js takes more than 5s and gives out an EBUSY error
We can ensure that the directory is not in use before attempting to remove it. Additionally, you can add a retry mechanism to handle transient issues.

Take this one along with unit tests for each API endpoint. Assigning you to this. It'll be great if you could solve the timeout issue.

@venkatesh21bit
Copy link

Sure, Thank u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMWOC BOUNTY-50 enhancement New feature or request feature Planned feature of software. good first issue Good for newcomers
Projects
3 participants