Contributing to web2py

89 views
Skip to first unread message

Marlysson Silva

unread,
Dec 11, 2016, 6:20:26 PM12/11/16
to web2py-users
Guys , good night .

I made a clone of repository of web2py to add some codes and i had some issues..

1. Need clone a submodule join with web2py's main repository ( ok isn't a issue , just isn't explicit a lot in documentation );

2. I added my code improvement code and ran the tests with command :
python web2py.py --run_system_tests

This case ran all tests from system.. There some way to execute individual test by file? E.g:
python -m unittest test_utils.py
python test_utils.py

3. And at end of all tests yet exists errors:

Ran 311 tests in 189.749s

FAILED
(failures=1, errors=4, skipped=1)


Some errors of encoding and index out of range..

It my machine or the tests are wrong same..

Niphlod

unread,
Dec 14, 2016, 2:28:32 PM12/14/16
to web2py-users
- if you cloned from github without reading the main page .... I wonder what "documentation" needs to be more explicit.
- you can single tests with run python -m unittest gluon.tests.whatever

Richard Vézina

unread,
Dec 14, 2016, 3:15:30 PM12/14/16
to web2py-users
I think he wants to execute a single or subset of test case inside a test_WEB2PY_MODULE_NAME. I don't think this is possible, but as Simone details you can run onlye the tests for a given web2py component (python file in gluon) at a time.

Richard

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages