-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Allow running tests programmatically #799
Conversation
Merge changes from locustio/locust
* creating run_locust function for running locust from within Python * fixing error can't import name wsgi * Passing all tests so far * Adding napoleon and adding locust dir to path * Updating documentation for new feature. * Fixed example file
Codecov Report
@@ Coverage Diff @@
## master #799 +/- ##
=========================================
+ Coverage 67.44% 67.7% +0.25%
=========================================
Files 15 15
Lines 1588 1483 -105
Branches 243 234 -9
=========================================
- Hits 1071 1004 -67
+ Misses 456 410 -46
- Partials 61 69 +8
Continue to review full report at Codecov.
|
Note that before this change all Travis builds are failing (see https://travis-ci.org/locustio/locust/jobs/380659365) |
Open to any alternative suggestions to dealing with Travis CI no longer supporting python3.3 other than removing it from tox.ini and .travis.yml if anyone has any ideas. |
https://www.python.org/dev/peps/pep-0398/#lifespan
I'd drop support for 3.3. |
I've had a look through the changes, and I can't see any issues. Especially since the tests pass on this branch, and tests fail on master. |
I think dropping 3.3 support is fine, but not in this PR.. please propose that separately. also... all of the other changes unrelated to this PR (whitespace, refactoring, rearranging, doc theming, etc) really need to be moved into individual PR's. |
Okay, will do, it was just difficult to submit a PR that failed the CI. Am on holiday for the next few days so next week some time. In the meantime if anyone else wants to raise PRs for some of the individual changes here feel free. |
you can add your PR to fix CI first |
Fixes #222
run_locust
that takes OptionParser object and additional arguments.parser.py
test_main.py
for new changes.from gevent import wsgi
intest_web.py
tofrom gevent import pywsgi
because it was throwing an error (also all uses of wsgi to pywsgi)is_taskset
andload_tasksetfile
since would be useful and minimal effort to add.