How can I run django unit test in Microsoft TFS automatically?
Asked
Active
Viewed 122 times
1 Answers
0
By default the Python-Django test feature is not integrated in TFS.
However vNext build (TFS 2015 and later) have more flexible steps, so you can use the Command line task or Utility: Batch script task to run pytest or django test. That means if you can run the Django unit test in command line, then you can run the tests in TFS.
Please reference this article to do that: Running Python Unit Test in a VSTS/TFS build
Other articles for your reference to run the Django unit test:
- Writing and running tests
- DJANGO UNIT TEST CASES WITH FORMS AND VIEWS
- Setting a Full Testing Framework for Django (and more!)
Besides, you can also have a try for this extension : Python Test

Andy Li-MSFT
- 28,712
- 2
- 33
- 55