title: How to Run and Debug unittest in Spyder IDE
body: <p>I have a python file called AllTests.py which looks like the following:</p>
  
  <pre><code>import unittest
  from SomeWonderfulTest import SomeWonderfulTestCase
  
  def runAllTestsNow():
      theTestSuite = unittest.TestSuite()
      theTestSuite.addTest(unittest.makeSuite(SomeWonderfulTestCase)
      return theTestSuite
  
  if __name__ == "__main__":
      unittest.main(defaultTest='runAllTestsNow')
  </code></pre>
  
  <p>I can run this at the command line as follows:</p>
  
  <pre><code>python -m unittest AllTests
  </code></pre>
  
  <p>However, I would like to use the Spyder IDE to debug some issues.  I know to specify command line options in Spyder, I can go to Run->General Setting->Command line options.  However, when I try to put "-m unittest" into these options, I get an error saying "option -m not recognized."  It appears it's trying to send the argument to the AllTests.py file instead of to python.</p>
  
  <p>How do I setup Spyder to debug these unittests?</p>