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

add tests #8

Open
moshe742 opened this issue Dec 16, 2020 · 3 comments
Open

add tests #8

moshe742 opened this issue Dec 16, 2020 · 3 comments

Comments

@moshe742
Copy link
Owner

Add tests to make sure all is well and stays that way

@flowgunso
Copy link
Contributor

Have you thought about which test suite to use ? pytest, nose, unittest ?

@moshe742
Copy link
Owner Author

Not yet, I think we should start by deciding on how to test and what, after that check which frameworks allow us to do what we want and proceed from there.
For example, when creating the HTML files, do we just check if the file was created? do we want to check it looks as intended?
How can we check the serve command? since it means we need to run a server and check that the user can get a response, but do we check also the actual response (for example, see that the HTML is the same) and if we do, how do we check things that won't change as long as the theme stays the same even if the CSS or HTML tags changed? and so on for all the commands.

@flowgunso
Copy link
Contributor

There are different thing that could be tested. The cli argument's existence, the error raised on invalid data given; the TemplateGenerator's method, the data type returned.

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

No branches or pull requests

2 participants