Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
covertool for eunit without CT? Is that possible?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Motiejus Jakštys  
View profile  
 More options Jun 1 2012, 10:03 am
From: Motiejus Jakštys <desired....@gmail.com>
Date: Fri, 1 Jun 2012 16:03:43 +0200
Local: Fri, Jun 1 2012 10:03 am
Subject: [erlang-questions] covertool for eunit without CT? Is that possible?
Hi,
I want code coverage data to be visible on Jenkins CI using cobertura
plugin. This part of HOWTO[1] is unclear:
"""
Configure cover to export data. Sample cover.spec for Common Test:
{incl_app, app0, details}.
{export, "all.coverdata"}.
"""

Of course, after ./rebar eunit, no relevant XML files are created
(neither all.coverdata is).

How do I configure covertool without CT?

Thanks,
Motiejus Jakštys

[1]: https://github.com/idubrov/covertool
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
André Graf  
View profile  
 More options Jun 1 2012, 1:32 pm
From: André Graf <an...@dergraf.org>
Date: Fri, 1 Jun 2012 19:32:49 +0200
Local: Fri, Jun 1 2012 1:32 pm
Subject: Re: [erlang-questions] covertool for eunit without CT? Is that possible?
Hi Motiejus

I did this a while ago and unfortunately I have no access for that
CI-server anymore so not sure if my information are (still) valid. I
have installed the covertool rebar plugin as described in
https://github.com/idubrov/covertool. Then you must configure the
plugin in your rebar.config file.
So:
"""
plugins, [rebar_covertool]}. % Enable covertool rebar plugin
{covertool_eunit, "eunit.coverage.xml"}. % Output report file name
{covertool_ct, {"ct.coverdata", "ct.coverage.xml"}}. % Source file
name, output report file name
"""
I guess you are referring to line 3 where you configure the covertool
for common test, however if you are not using common test at all you
can omit that line.
I think that is it.

Cheers
Andre

On 1 June 2012 16:03, Motiejus Jakđtys <desired....@gmail.com> wrote:

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Motiejus Jakštys  
View profile  
 More options Jun 2 2012, 3:29 pm
From: Motiejus Jakštys <desired....@gmail.com>
Date: Sat, 2 Jun 2012 21:29:47 +0200
Local: Sat, Jun 2 2012 3:29 pm
Subject: Re: [erlang-questions] covertool for eunit without CT? Is that possible?

On Fri, Jun 1, 2012 at 8:22 PM, André Graf <an...@dergraf.org> wrote:
> Have you cover enabled?
> {cover_enabled, true}.

Hi André,

Yes, I did. I set up a very tiny sample project for this:
https://github.com/Motiejus/covertest

Testing on Erlang R15B and rebar binary is copied from your project.

Thanks for your help,
Motiejus

--
Motiejus Jakštys
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Motiejus Jakštys  
View profile  
 More options Jun 3 2012, 5:17 pm
From: Motiejus Jakštys <desired....@gmail.com>
Date: Sun, 3 Jun 2012 23:17:33 +0200
Local: Sun, Jun 3 2012 5:17 pm
Subject: Re: [erlang-questions] covertool for eunit without CT? Is that possible?

On Sat, Jun 2, 2012 at 9:29 PM, Motiejus Jakštys <desired....@gmail.com> wrote:
> On Fri, Jun 1, 2012 at 8:22 PM, André Graf <an...@dergraf.org> wrote:
>> Have you cover enabled?
>> {cover_enabled, true}.

> Hi André,

> Yes, I did. I set up a very tiny sample project for this:
> https://github.com/Motiejus/covertest

> Testing on Erlang R15B and rebar binary is copied from your project.

Figured it out, it's rebar fault. If all tests pass, covertool works
as expected.

However, if any of tests fail while running ./rebar eunit, it halts
the VM on the first opportunity and hence does not call
rebar_covertool:eunit/2. I created a trivial patch for rebar and now
working on a test suite which is less trivial. Will submit a patch to
rebar in next couple of days.

Best,
Motiejus Jakštys
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »