-1

How can I run django unit test in Microsoft TFS automatically?

majidmc2
  • 1
  • 2

1 Answers1

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:

Besides, you can also have a try for this extension : Python Test

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