Menu

to view source code in html report

2004-09-15
2004-09-15
  • Nobody/Anonymous

    how to view source code in html report using emma.

     
    • Nobody/Anonymous

      I hava the same problem!!!

       
    • Vlad Roubtsov

      Vlad Roubtsov - 2004-09-15

      Could you elaborate on what your problem is more specifically?

      Here are a few resources available that show how to link an HTML report to the source code:

      - the sample reports on EMMA web site are accompanied with the *exact* steps used to generate them: http://emma.sourceforge.net/samples.html

      - you might be forgetting to use the sourcepath option in order to link the report to the source code. You do it via the "sourcepath" attribute or <sourcepath> nested element in ANT (http://emma.sourceforge.net/reference/ch02s04s02.html) or via -sp (-sourcepath) command line option (http://emma.sourceforge.net/reference/ch02s04s03.html)

       
    • Nobody/Anonymous

      We are not using the ANT option and are operating through the command line options. Lets say we have an application A.java, please specify how to view the source code in different colours in the HTML report using emma tool.

       
    • Nobody/Anonymous

      I thing my problem is the step before, which I can't understand:
      C:\testing\emma-2.0.4217\examples>java emma instr -d outinstr -ip out
      EMMA: processing instrumentation path ...
      EMMA: instrumentation path processed in 210 ms
      EMMA: [3 class(es) instrumented, 0 resource(s) copied]
      EMMA: metadata merged into [C:\testing\emma-2.0.4217\examples\coverage.em] {in 50 ms}

      C:\testing\emma-2.0.4217\examples>java -cp outinstr; out Main
      Exception in thread "main" java.lang.NoClassDefFoundError: out
      , but out contains Main.class

       
    • Vlad Roubtsov

      Vlad Roubtsov - 2004-09-15

      Doesn't -sp command line option (for run/report tool) work for you?

      I repeat my previous question: I need more details. Is it (a) you don't know how to do this or (b) you think you know how to do it, but it just isn't working?

       
    • Vlad Roubtsov

      Vlad Roubtsov - 2004-09-15

      <quote>
      C:\testing\emma-2.0.4217\examples>java -cp outinstr; out Main
      Exception in thread "main" java.lang.NoClassDefFoundError: out
      , but out contains Main.class
      </quote>

      You have a space between "outinstr;" and "out". I think you must have copied this straight out of the user guide. But the user guide has a little callout icon after the semicolon. Remove the space.

       
    • Nobody/Anonymous

      <quote>
      C:\testing\emma-2.0.4217\examples>java -cp outinstr; out Main
      Exception in thread "main" java.lang.NoClassDefFoundError: out
      , but out contains Main.class
      </quote>

      Its all true. Thank You!
      Intimately: Vlad, where are you coming from? Best regards Viktor

       
    • Vlad Roubtsov

      Vlad Roubtsov - 2004-09-15

      <quote>Intimately: Vlad, where are you coming from? Best regards Viktor</quote>

      I didn't expect to get intimate with my users so quickly :), but if you'd like to ask a personal question you can always get in touch with me through my SourceForge alias.

      Cheers,
      Vlad.

       

Log in to post a comment.