Jeff, Thanks for quick responses. I tried that. i am still getting the below exception
C:\Program Files (x86)\IronPython 2.7>ipy.exe -X:FullFrames MathUnitTest.py C:\Program Files (x86)\IronPython 2.7\lib\site-packages\coverage\__init__.py:1: DeprecationWarning: object.__new__() takes no parameters """Code coverage measurement for Python. Traceback (most recent call last): File "MathUnitTest.py", line 4, in <module> File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\coverage\control .py", line 403, in start File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\coverage\collect or.py", line 288, in start File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\coverage\collect or.py", line 83, in _trace File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\coverage\control .py", line 296, in _should_trace File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\coverage\control .py", line 253, in _should_trace_with_reason AttributeError: 'NoneType' object has no attribute 'get' C:\Program Files (x86)\IronPython 2.7> On Fri, May 9, 2014 at 2:50 PM, Jeff Hardy <jdha...@gmail.com> wrote: > I'm not sure how to do it from PTVS, but you'll need to add > -X:FullFrames to the ipy.exe command line and try it again. > > - Jeff > > On Fri, May 9, 2014 at 9:53 AM, Anand Kumar <anand.k...@gmail.com> wrote: > > I am using PTVS along with Visual studio2010 to try coverage.py. I > attached > > the py files used to try. i got the below exception when i run > > mathunittest.py file from VS2010. > > > > Please let me know what should i do to make it work. > > <string>:1: DeprecationWarning: object.__new__() takes no parameters > > Traceback (most recent call last): > > File "<string>", line 4, in <module> > > File "C:\Program Files (x86)\IronPython > > 2.7\lib\site-packages\coverage\control.py", line 403, in start > > self.collector.start() > > File "C:\Program Files (x86)\IronPython > > 2.7\lib\site-packages\coverage\collector.py", line 288, in start > > threading.settrace(self._installation_trace) > > File "C:\Program Files (x86)\IronPython > > 2.7\lib\site-packages\coverage\collector.py", line 83, in _trace > > tracename = self.should_trace(filename, frame) > > File "C:\Program Files (x86)\IronPython > > 2.7\lib\site-packages\coverage\control.py", line 296, in _should_trace > > canonical, reason = self._should_trace_with_reason(filename, frame) > > File "C:\Program Files (x86)\IronPython > > 2.7\lib\site-packages\coverage\control.py", line 253, in > > _should_trace_with_reason > > dunder_file = frame.f_globals.get('__file__') > > AttributeError: 'NoneType' object has no attribute 'get' > > > > > > > > On Fri, May 9, 2014 at 2:16 PM, Jeff Hardy <jdha...@gmail.com> wrote: > >> > >> On Fri, May 9, 2014 at 5:09 AM, Anand Kumar <anand.k...@gmail.com> > wrote: > >> > Hi, > >> > Is there any code coverage tool identified for Iron python? If so > please > >> > let > >> > me know the tool. If not, please let me know when it will be > available. > >> > >> I don't know of any that explicitly support it. I'm not sure what > >> would be needed to make coverage.py work if it doesn't; I'm not sure > >> if it's even been tried. > >> > >> - Jeff > > > > >
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users