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
Call to action: Clean up unit test tree.
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
  20 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
 
Louis Landry  
View profile  
 More options Oct 8 2012, 3:31 am
From: Louis Landry <louislan...@gmail.com>
Date: Mon, 8 Oct 2012 00:31:15 -0700
Local: Mon, Oct 8 2012 3:31 am
Subject: Call to action: Clean up unit test tree.

Hi guys and gals,

Our code style errors are down to 0 in the library tree (including legacy).
 We have a few warnings, but pretty much all of those are underscore
prefixed object properties which are breaking changes in some cases, so we
are taking our time.  The unit test tree however has over 10,000 code style
errors right now!!

I'd like to get a group of people together that are interested in
systemically running through these unit test packages and getting them
consistent and compliant... any takers?

- Louis


 
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.
Donald Gilbert  
View profile  
 More options Oct 8 2012, 10:42 am
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Mon, 8 Oct 2012 09:42:02 -0500
Local: Mon, Oct 8 2012 10:42 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

I'm up for it. How do you want to organize it, so we aren't duplicating
work? Assign sets of tests to clean up to those who volunteer? Or should
the volunteers just claim what they want to fix, on a first come first
serve basis?


 
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.
Chad Windnagle  
View profile  
 More options Oct 8 2012, 11:02 am
From: Chad Windnagle <drmmr...@gmail.com>
Date: Mon, 8 Oct 2012 11:02:19 -0400
Local: Mon, Oct 8 2012 11:02 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

Perhaps the proper thing to do would be to create a google spreadsheet with
a list of all the libraries, and have people put their names on libraries
they are willing to tackle. Then we can mark completed, in progress, etc...

I'd be willing to help out with this as well.

-Chad

Regards,
Chad Windnagle
Fight SOPA <https://www.google.com/landing/takeaction/>

On Mon, Oct 8, 2012 at 10:42 AM, Donald Gilbert <dilbert4l...@gmail.com>wrote:


 
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.
Donald Gilbert  
View profile  
 More options Oct 9 2012, 11:04 pm
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Tue, 9 Oct 2012 20:04:36 -0700 (PDT)
Local: Tues, Oct 9 2012 11:04 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

I completed unit tests for JModelLegacy
- https://github.com/joomla/joomla-platform/pull/1588


 
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.
Donald Gilbert  
View profile  
 More options Oct 10 2012, 11:11 am
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Wed, 10 Oct 2012 08:11:24 -0700 (PDT)
Local: Wed, Oct 10 2012 11:11 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

I am going to start a public google doc to cover this, if no one else has
already.


 
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.
Donald Gilbert  
View profile  
 More options Oct 10 2012, 11:24 am
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Wed, 10 Oct 2012 08:24:38 -0700 (PDT)
Local: Wed, Oct 10 2012 11:24 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

And here it is
- https://docs.google.com/spreadsheet/ccc?key=0AqKlGgpGs6oOdDlYa21qN3R6...

The first column is the class that requires testing.
The second column is a select list of whether the test is completed. You
can select yes, no or partial (if some of the tests are complete)
The third column is the name of the person that would like to be
responsible for completing a test.

I'm busy going through all the current unit tests, marking their
completeness level in the google doc. So when you go there, anything marked
as red is an immediate need, the yellow is partially completed, and red is
an immediate need.


 
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.
Donald Gilbert  
View profile  
 More options Oct 10 2012, 2:45 pm
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Wed, 10 Oct 2012 11:45:15 -0700 (PDT)
Local: Wed, Oct 10 2012 2:45 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

So I just realized that this was referring to coding standard fixes, and
not the tests themselves. :(

Everyone: The google doc I linked to above covers what tests have not been
completed within the legacy suite. Those also need done, but we still need
to create a google doc for cleaning up the coding standards.


 
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.
Louis Landry  
View profile  
 More options Oct 11 2012, 1:03 am
From: Louis Landry <louislan...@gmail.com>
Date: Wed, 10 Oct 2012 22:03:19 -0700
Local: Thurs, Oct 11 2012 1:03 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

Thanks Donald.

I did mean code style, though I'm certainly not going to complain about
getting more tests written, that would be fantastic!

If anyone would like to lead the charge on this and run with it please let
me know.  It'd be great to start enforcing coding standards on the unit
test tree as well. :-)

- Louis

On Wed, Oct 10, 2012 at 11:45 AM, Donald Gilbert <dilbert4l...@gmail.com>wrote:


 
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.
Elin Waring  
View profile  
 More options Oct 11 2012, 9:11 am
From: Elin Waring <elin.war...@gmail.com>
Date: Thu, 11 Oct 2012 06:11:07 -0700 (PDT)
Local: Thurs, Oct 11 2012 9:11 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

Whoa someone has been making the world less ugly
http://developer.joomla.org/coverage/

So in terms of unit test coverage itself that's where I look for things to
do. There is some low hanging fruit such as a lot of expectedException
tests and also methods where one "if" never is true in the current tests
(and admittedly it is really hard sometimes to come up with the right data
for some of those).  There are also tons of places in Jhtml   that are not
hard to write.

@Louis is there a reason we can't make a separate project in Jenkins just
to run the codestyle checks for the test tree? I'm just saying to do it
temporarily until we get to the point that they can just run with the code?

Elin


 
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.
Donald Gilbert  
View profile  
 More options Oct 11 2012, 10:58 am
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Thu, 11 Oct 2012 09:58:12 -0500
Local: Thurs, Oct 11 2012 10:58 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

Whoa is right - that code coverage system is very nice!

I'll start using that instead of my paltry google doc list. Do you know if
it's live coverage from the staging or master branch of the platform repo?


 
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.
Ian  
View profile  
 More options Oct 11 2012, 12:52 pm
From: Ian <ianlen...@gmail.com>
Date: Thu, 11 Oct 2012 09:52:56 -0700 (PDT)
Local: Thurs, Oct 11 2012 12:52 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

http://developer.joomla.org/coverage-legacy/ has a coverage report for the
legacy tree.  It isn't live - it is a nightly job that runs from the
staging branch of the platform repo.

Ian


 
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.
Elin Waring  
View profile  
 More options Oct 11 2012, 4:49 pm
From: Elin Waring <elin.war...@gmail.com>
Date: Thu, 11 Oct 2012 13:49:56 -0700 (PDT)
Local: Thurs, Oct 11 2012 4:49 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

So I had an idea  ... I made  an issue
https://github.com/joomla/joomla-platform/issues/1597

That I see as a standing issue, and I hope it will make resources and the
need for help on this more visible. And  we can avoid duplicate work if
people will leave comments naming what they are working on.

We are going to get a good bump in percent test coverage with the merging
of the GSoC projects but really if you care about backward compatibility
you need to care about getting test coverage of older classes.

Elin


 
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.
Donald Gilbert  
View profile  
 More options Oct 11 2012, 4:55 pm
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Thu, 11 Oct 2012 15:54:39 -0500
Local: Thurs, Oct 11 2012 4:54 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

Thanks for taking the initiative on this Elin - I've added what I'm working
on.


 
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.
Elin Waring  
View profile  
 More options Oct 27 2012, 5:48 am
From: Elin Waring <elin.war...@gmail.com>
Date: Sat, 27 Oct 2012 02:48:13 -0700 (PDT)
Local: Sat, Oct 27 2012 5:48 am
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

In terms of cleaning up the tree .. we really need some sniffs specifically
for that tree if it is going to work. For example, the biggest issue I see
is line length. Tests have a lot of issues with line length because the
expects can't include  line endings unless the actual result includes line
endings.  Really, I would like to just turn off line length testing in
anything in he testing tree. Also there should be a decision about whether
@covers is required. It's not present in the majority of tests and it would
need a special sniff to only apply to tests.

Also (related to the other thread) we need to decide

protected function setUp ()
{

}

or

protected function setUp ()
{

}

Since it is inconsistent.

Those were the most obvious issues looking through the codesniff results
and the tree itself.

Elin


 
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.
Ian  
View profile  
 More options Oct 29 2012, 2:12 pm
From: Ian <ianlen...@gmail.com>
Date: Mon, 29 Oct 2012 11:12:39 -0700 (PDT)
Local: Mon, Oct 29 2012 2:12 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

setUp and tearDown methods should be sure to call parent in case we want to
add pre and post processing stuff in the future.

Ian


 
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.
Elin Waring  
View profile  
 More options Oct 29 2012, 4:13 pm
From: Elin Waring <elin.war...@gmail.com>
Date: Mon, 29 Oct 2012 16:13:02 -0400
Local: Mon, Oct 29 2012 4:13 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

I think people (myself included ) just put them in because other tests have
them. So if we get them all out we'll see fewere copy and paste instances.

Elin


 
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.
Donald Gilbert  
View profile  
 More options Oct 29 2012, 4:22 pm
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Mon, 29 Oct 2012 15:22:23 -0500
Local: Mon, Oct 29 2012 4:22 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

If no is opposed, I'll go through the legacy tree and remove all instances
of empty setUp and tearDown. And if those methods aren't yet calling the
parent methods, I'll add it.


 
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.
Elin Waring  
View profile  
 More options Oct 29 2012, 4:25 pm
From: Elin Waring <elin.war...@gmail.com>
Date: Mon, 29 Oct 2012 16:25:07 -0400
Local: Mon, Oct 29 2012 4:25 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

That would be great.  I've got a pull request for a bunch of things in the
joomla test tree so I'll take care of this issue too.

Elin

On Mon, Oct 29, 2012 at 4:22 PM, Donald Gilbert <dilbert4l...@gmail.com>wrote:


 
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.
Michael Babker  
View profile  
 More options Oct 29 2012, 6:32 pm
From: Michael Babker <michael.bab...@gmail.com>
Date: Mon, 29 Oct 2012 17:32:40 -0500
Local: Mon, Oct 29 2012 6:32 pm
Subject: Re: [jplatform] Call to action: Clean up unit test tree.

PHPUnit's skeleton generator adds in the @covers tags by default (at least
it was on 3.6, I haven't run it on 3.7), so when I was writing tests, I'd
leave those tags in there not thinking twice about it.  From the looks of
it, if the tag is used, then the code coverage info is limited to only the
method in the tag
(http://www.phpunit.de/manual/current/en/appendixes.annotations.html#a...
xes.annotations.covers).

From:  Elin Waring <elin.war...@gmail.com>
Reply-To:  <joomla-dev-platform@googlegroups.com>
Date:  Monday, October 29, 2012 3:13 PM
To:  <joomla-dev-platform@googlegroups.com>
Subject:  Re: [jplatform] Call to action: Clean up unit test tree.

I think people (myself included ) just put them in because other tests have
them. So if we get them all out we'll see fewere copy and paste instances.

Elin


 
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.
Donald Gilbert  
View profile  
 More options Oct 30 2012, 2:41 am
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Mon, 29 Oct 2012 23:41:28 -0700 (PDT)
Local: Tues, Oct 30 2012 2:41 am
Subject: Re: Call to action: Clean up unit test tree.

Here's the PR for fully cleaning up the Legacy Unit Test Tree
- https://github.com/joomla/joomla-platform/pull/1653


 
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 »