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

Write tests for APP #47

Open
sudip-mondal-2002 opened this issue Apr 27, 2022 · 21 comments
Open

Write tests for APP #47

sudip-mondal-2002 opened this issue Apr 27, 2022 · 21 comments
Labels
github_actions Pull requests that update GitHub Actions code ReactJS ReactJS based changes of this project Testing Related to testing of the project

Comments

@sudip-mondal-2002
Copy link
Member

sudip-mondal-2002 commented Apr 27, 2022

Is your feature request related to a problem? Please describe.
The front-end currently doesn't have any tests written.

Describe the solution you'd like
Use Jest or any other Unit testing library to write tests for the react frontend of the project. Connect them to GitHub action so it could be run before deployment.

@sudip-mondal-2002 sudip-mondal-2002 added github_actions Pull requests that update GitHub Actions code ReactJS ReactJS based changes of this project Testing Related to testing of the project labels Apr 27, 2022
@utkarsh4321
Copy link

@sudip-mondal-2002 hi I want to work on it. I never worked on the GitHub action thing but I can do it. if you help me a little bit. Can you assign it to me?

@sudip-mondal-2002
Copy link
Member Author

Please work on writing the tests first, GitHub action is very easy part, I can help you with that.

@utkarsh4321
Copy link

Hii on configuring this project I m facing some issues. When installing node-gyp. So can you tell me how I will resolve this?

@sudip-mondal-2002
Copy link
Member Author

write tests using jest only.

@utkarsh4321
Copy link

ok

@utkarsh4321
Copy link

@sudip-mondal-2002 Hii sorry for the late response. I m unable to set up this project on my laptop. Can you tell me ways to set up this project?

@sudip-mondal-2002
Copy link
Member Author

Sure, what's the issue? Have you followed the contribution.md file?

@utkarsh4321
Copy link

yes, can I use docker to run this project? it will work. or not?

@sudip-mondal-2002
Copy link
Member Author

You may use vscode remote containers.

@utkarsh4321
Copy link

ok i will try that and update you

@utkarsh4321
Copy link

@sudip-mondal-2002 can you suggest any docs regarding that vscode remote container

@sudip-mondal-2002
Copy link
Member Author

https://code.visualstudio.com/docs/remote/containers

The container is already configured, no need to configure it again.

@utkarsh4321
Copy link

ok

@utkarsh4321
Copy link

Hii @sudip-mondal-2002 can you tell me what about local.setting.json that need to configure na so where i will get those url.

@sudip-mondal-2002
Copy link
Member Author

check the setup.sh, if you run that file that'll create it

@utkarsh4321
Copy link

@sudip-mondal-2002 can I use react-testing-library with jest? To test react component?

@sudip-mondal-2002
Copy link
Member Author

Yes sure, you may use react-testing-library

@utkarsh4321
Copy link

ok

@utkarsh4321
Copy link

image
Here I m only seeing these pages so I Will write test cases for these pages only or there are more pages present in this app

@utkarsh4321
Copy link

@sudip-mondal-2002 Just tell me if I need to write test cases for all the pages or if there are some specific components only for those you want test cases. Just tell me this?

@sudip-mondal-2002
Copy link
Member Author

You haven't configured the project correctly, that's why you can't see the login button, and so you can't enter the dashboard. We need tests for the dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code ReactJS ReactJS based changes of this project Testing Related to testing of the project
Projects
None yet
Development

No branches or pull requests

2 participants