No code coverage results?

dmerrill
2005-01-08
2013-03-15
  • dmerrill
    dmerrill
    2005-01-08

    Basic question I'm sure, new to python, PyDev, and code coverage tools.

    I've got a project set up in PyDev, consisting only of the 2 files from Dive Into Python's roman stage 9, roman9.py and romantest9.py. I right click on romantest9, choose Python: Coverage, enter -v (for verbose output) in the Modify Attributes and Launch dialog, and click Profile.

    The console shows the expected output, which is the results of each test and the cumulative time taken to run them.

    I then switch to Code Coverage Results View, and point it at roman directory. It tells me it refreshed the results, but clicking on either file shows the msg 'File has no statistics.'

    What am I missing? This is python 233, Eclipse 301, PyDev 080, win2k.

    Thanks

     
    • Fabio Zadrozny
      Fabio Zadrozny
      2005-01-24

      hummm, I don't know, it works here, doing the same thing you did. Do you have anything in your error log?

      (window->show view->error log)

       
  • Dragon Read
    Dragon Read
    2010-08-02

    I've had this problem with imported files only (as opposed to files that were created within eclipse)… copying the contents of the file into a new file seemed to make it work for me…