question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to run a single test? It would make development and debugging much faster

See original GitHub issue

I’ve searched repeatedly, read tox docs but I can’t work this out. It would make development and debugging tests much easier 🙂

I think it’s possible like this some how:

tox -e py38 -- test_stop_users_with_hatch_rate
tox -e py38 -- locust.test.test_runners::TestMasterRunner::test_stop_users_with_hatch_rate
tox -e py38 -- locust.test.test_runners.TestMasterRunner
tox -e py38 test/test_runners.py::TestMasterRunner::test_stop_users_with_hatch_rate

Any idea?

Environment

  • OS: MacOS
  • Python version: 3.8
  • Locust version: master

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
max-rocket-internetcommented, Aug 11, 2020

Super nice, thanks @cyberw

0reactions
max-rocket-internetcommented, Jan 21, 2021

OK thanks again @cyberw

Read more comments on GitHub >

github_iconTop Results From Across the Web

Faster way to run, debug and view results of Jest tests
Use Jest as your testing framework for your tests, use Jest CLI to run tests as a part of your Continuous Integration (CI)...
Read more >
9 Ways To Make Slow Tests Faster - Semaphore CI
At Semaphore, we've seen our fair share of tests and have identified 9 ways to make your slow tests faster.
Read more >
Debugging and Testing
Testing can be done at all stages of module development: requirements ... Debugging is a cyclic activity involving execution testing and code correction....
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
Tests can be run from Test Explorer by right-clicking in the code editor on a test and selecting Run test or by using...
Read more >
Cannot run or debug a single test - Visual Studio Feedback
After installing the latest VS update yesterday (8/5/2020), right-clicking and running or debugging a single unit test in Test Explorer runs every test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found