So I have a very simple module I import that I want to do unit testing on called Two. It has a function, red, that will just replicate the functionality of all(). The code below runs fine, but when I try debugging it, I get:
Test Name: test_tryStuff
Test Outcome: Failed
Result StandardError:
Traceback (most recent call last):
File "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\PYTHON TOOLS FOR VISUAL STUDIO\2.2\visualstudio_py_testlauncher.py", line 60, in <module>
File "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\PYTHON TOOLS FOR VISUAL STUDIO\2.2\visualstudio_py_testlauncher.py", line 39, in main
File "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\PYTHON TOOLS FOR VISUAL STUDIO\2.2\ptvsd\attach_server.py", line 151, in enable_attach
RuntimeError: IronPython must be started with -X:Tracing and -X:Frames options to support PTVS remote debugging.
Where do I enable -X:Tracing and -X:Frames? I tried putting -X:Tracing -X:Frames in interpreter arguments under Debug under project properties, same result. I've tried both IronPython and Standard Python launch mode, same result.
The code:
import Two as Two
class SomeOtherTest(unittest.TestCase):
def test_tryStuff(self):
self.assertEqual(Two.red([True,True,True]),True)