Code Coverage not working in Rails for NB 6.7 "No data"

View: New views
2 Messages — Rating Filter:   Alert me  

Code Coverage not working in Rails for NB 6.7 "No data"

by Paul Rosen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've tried to run my unit tests with code coverage on, but the report
just says, "No data -- have you run your code yet?".

Here are the steps I did:

1) right clicked my Rails project in the Projects pane
2) under "Code Coverage" I selected "install rcov"

That gave me the scary message:

WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
          /usr/bin aren't both writable.
WARNING:  You don't have /Users/paulrosen/.gem/ruby/1.8/bin in your PATH,
          gem executables will not run.
Building native extensions.  This could take a while...
Successfully installed rcov-0.8.1.2.0
1 gem installed

However, if I do a "gem list" I get the line:

rcov (0.8.1.2.0)

3) right click my Rails project in the Projects pane / select "Code
Coverage" / "Collect and Display Code Coverage".

4) Ran my tests by right click my Rails project in the Projects pane /
selecting "Test"

5) All my tests ran.

6) I selected "Show report..." and I see "No data -- have you run your
code yet?".

[I also just hit a couple pages of my app to see if it was just with the
tests, but nothing showed up there, either.]

Any ideas?

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Code Coverage not working in Rails for NB 6.7 "No data"

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Paul,

Could you please turn detailed logging
(http://wiki.netbeans.org/FaqRubyNBLogging67), reproduce the issue and
send the log to me? It might give some hints on why this isn't working
for you.

Thanks,
Erno

Paul Rosen wrote:

> I've tried to run my unit tests with code coverage on, but the report
> just says, "No data -- have you run your code yet?".
>
> Here are the steps I did:
>
> 1) right clicked my Rails project in the Projects pane
> 2) under "Code Coverage" I selected "install rcov"
>
> That gave me the scary message:
>
> WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
>       /usr/bin aren't both writable.
> WARNING:  You don't have /Users/paulrosen/.gem/ruby/1.8/bin in your PATH,
>       gem executables will not run.
> Building native extensions.  This could take a while...
> Successfully installed rcov-0.8.1.2.0
> 1 gem installed
>
> However, if I do a "gem list" I get the line:
>
> rcov (0.8.1.2.0)
>
> 3) right click my Rails project in the Projects pane / select "Code
> Coverage" / "Collect and Display Code Coverage".
>
> 4) Ran my tests by right click my Rails project in the Projects pane /
> selecting "Test"
>
> 5) All my tests ran.
>
> 6) I selected "Show report..." and I see "No data -- have you run your
> code yet?".
>
> [I also just hit a couple pages of my app to see if it was just with
> the tests, but nothing showed up there, either.]
>
> Any ideas?
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...