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

unit test and assertion for any existing or new method #20

Open
byteface opened this issue Aug 14, 2021 · 1 comment
Open

unit test and assertion for any existing or new method #20

byteface opened this issue Aug 14, 2021 · 1 comment
Labels
good first issue Good for newcomers

Comments

@byteface
Copy link
Owner

If you want to get involved then create an assertion in a unit test for any given method. some are still just print statements at the moment.

this may also uncover bugs. so be prepared.

or create a new unit test for a method that isn't done yet and make it work. good luck

@byteface byteface added the good first issue Good for newcomers label Aug 14, 2021
@byteface
Copy link
Owner Author

byteface commented Aug 14, 2021

See Makefile to run all tests:

make test

NOTE - default tests ubuntu. so will fail on window when terminal test runs. comment out locally if that's the case

or to test a single function:
python -m unittest tests.test_javascript.TestCase.test_javascript_array
python -m unittest tests.test_dQuery.TestCase.test_addClass
python -m unittest tests.test_geom.TestCase.test_vec2
python3 -m unittest tests.test_cmd.TestCase.test_cmd_dir # only windows

or to test a whole module:
python -m unittest tests.test_html
python -m unittest tests.test_CDN

to see coverage:
coverage run -m unittest discover tests/
coverage report

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

No branches or pull requests

1 participant