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 coverage [discussion only] #132

Open
atherdon opened this issue Jul 11, 2019 · 22 comments
Open

Test coverage [discussion only] #132

atherdon opened this issue Jul 11, 2019 · 22 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed in-process tests

Comments

@atherdon
Copy link
Contributor

Is your feature request related to a problem? Please describe.
As most of our methods were created and perfect, i think it's a good time for cover them with tests, that will help us at our future work

@AndrewSerra let's discuss here what methods should be covered with tests

@atherdon atherdon changed the title Test coverage Test coverage [discussion only] Jul 11, 2019
@atherdon atherdon added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed in-process tests labels Jul 11, 2019
@AndrewSerra
Copy link
Contributor

I think we should start with the ones that go in index.js Or we can do the exact opposite and start with small tests, so we are sure that all helper functions work and continue to the more important functions (such as the ones going to be in index.js)

@atherdon
Copy link
Contributor Author

atherdon commented Jul 11, 2019 via email

@atherdon
Copy link
Contributor Author

at this file i list our methods(maybe be outdated)
https://github.com/GroceriStar/food-static-files-generator/blob/master/readme3.md

@atherdon
Copy link
Contributor Author

Now, when we'll merge PR from Shikhar, we'll have first basic tests related to methods from fileSystem.js

@AnuragKapoor-CSEngineer you can start to work on tests, related to methods, located at objects.js file

@AndrewSerra
Copy link
Contributor

Are we creating a tests directory for this repo as well? Maybe we could have multiple files so we can categorize groups in separate files.

@atherdon
Copy link
Contributor Author

I think it's a good idea to store tests at separated folder. can you create a separated task for it?

@AndrewSerra
Copy link
Contributor

I think it's a good idea to store tests at separated folder. can you create a separated task for it?

Just to clarify, opening an issue to create the directory?

@atherdon
Copy link
Contributor Author

yes, open issue to create a directory and move our current test files there and fix issues with paths :)

@AndrewSerra
Copy link
Contributor

yes, open issue to create a directory and move our current test files there and fix issues with paths :)

Consider it done!

@atherdon
Copy link
Contributor Author

@svr8 @amogh-jrules let's chat here about adding more tests to this package. right now we not starting it - i want to hear your thoughts

@atherdon
Copy link
Contributor Author

#144

@svr8
Copy link
Contributor

svr8 commented Jul 13, 2019

Writing tests for generateArray.js, generateFile.js and generateFiles.js seems relatively easy tasks to do. However, the core functions like the ones in fileSystem.js have been modified to use callbacks. So, first, I'll need to modify all of their calling methods to pass callback functions.

@atherdon
Copy link
Contributor Author

atherdon commented Jul 13, 2019 via email

@atherdon
Copy link
Contributor Author

I assume we need to add more coverage to methods like write, save, because i think we still can put not working code inside of our module and it wouldn't be noticed quickly.

just corrected a few issues, but it seems like we need to do it on a tests level

@0xamogh
Copy link
Contributor

0xamogh commented Jul 14, 2019

Hi, actually I dont have much experience writing unit tests. Im not sure what is the way to proceed, can anyone of you point me to some reading material or resources?

@atherdon
Copy link
Contributor Author

atherdon commented Jul 14, 2019 via email

@atherdon
Copy link
Contributor Author

long but perfect book: https://flaviocopes.com/jest/

@atherdon
Copy link
Contributor Author

@Beni03 @elnur004 I think you should join this project as well. Buzz me and i'll assing some simple tasks to you

@Beni03
Copy link
Contributor

Beni03 commented Jul 14, 2019 via email

@elnur004
Copy link

elnur004 commented Jul 14, 2019 via email

@svr8
Copy link
Contributor

svr8 commented Jul 27, 2019

Should we write tests for src/utils.js?

@atherdon
Copy link
Contributor Author

@svr8 not sure. are we finish all pending things?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed in-process tests
Projects
None yet
Development

No branches or pull requests

6 participants