kacperus / cf-metrics

Cold Fusion code coverage tool
17 stars 6 forks source link

Only seeing cfmetrics classes instrumented? #3

Open yamikuronue opened 9 years ago

yamikuronue commented 9 years ago

I installed the JAR as well as AspectJ, deleted the files in {cf_server_id}/WEB-INF/cfclasses, and browsed the site for a bit, but when I hit coverage-statistics.cfm, the only files listed are coverage-statistics.cfm, coverage-check.cfm, coverage-details.cfm, and coverage-statistics-action.cfm. What have I likely done wrong?

kacperus commented 9 years ago

Which ColdFusion version are you using? Do you see following message in your server log "ColdFusion Code Coverage enabled"? Are you using standalone or EAR version of ColdFusion?

yamikuronue commented 9 years ago

The EAR, version 9. I don't see that message in server.log (inside cfusion-war/cfusion-war/WEB-INF/cfusion/logs, right?), but I did get coverage results for the coverage-related cfm files, so I thought it must be working.

kacperus commented 9 years ago

That's strange... in my previous company we used EAR version too and it worked. When I did the development I checked the standalone version too.

Do your CFM, CFC fields are also part of the EAR/WAR package or are hosted separately and just mapped appropriately via CF admin?

yamikuronue commented 9 years ago

They are hosted separately, in a webroot folder elsewhere, mapped using CF Admin. Is that likely to be a problem?

Also, in case it matters, I'm testing using a Windows server

kacperus commented 9 years ago

This is the only think which comes to my mind at the moment. Do you have templates cache enabled? If yes can you check if all the compiled classes (original CFM templates) go into cache directory? Including both coverage-statistics specific CFMs and your project files.

Would it be possible to send me one compiled class so I can check if it got the necessary modifications? The one from your project.

kacperus commented 9 years ago

Have you managed to overcome your problem?

kacperus commented 9 years ago

@yamikuronue I know it has been a while but do you remember if you had any Adobe CF HotFixes applied to your CF server instance?

yamikuronue commented 9 years ago

Sorry, late September is the start of our busy period so I haven't had time to get back to this effort. In a few weeks when we slow down again for the holidays I will be able to pick this back up

kacperus commented 3 years ago

Hey @yamikuronue, I'm curious to know if you managed to overcome the problem back in... 2015 :)

yamikuronue commented 3 years ago

LOL no, I left that job and am on the second job after it. My career sans coldfusion is going great though :)

yamikuronue commented 3 years ago

I am pretty sure we didn't have hotfixes installed though, if that helps anyone.