Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing library
#1
Hello!
1. What is a test framework that you use?
2. I want a framework with
a) Continuous running. Like I just run:
Quote:$ tests run
and it should run tests again and again, when files are changed. It's a common thing for node.js.

b) I want to divide all tests on several groups: small/middle/big and be able to point to a runner, which group should be started.
How can I achieve this?

Thank you very much!
Reply
#2
Let me answer one of my questions on my own:

Q: How to run tests automatically when any file is changed?
A: There's a beautiful watchdog module, that allows us to listen to File System events programmatically. It also has a shell interface and so can type:

 watchmedo shell-command --recursive --pattern="*.py" --command='python -m unittest' .
I don't know the exact testing command yet, so the question is still opened :) I don't want to run all the test, I want to run only mini-tests.
Reply
#3
(Jan-28-2018, 01:04 AM)egslava Wrote: 1. What is a test framework that you use?
pytest is the best and most pythonic framework out there.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,737 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020