@group functional
) seems to be sufficient and would allow tests to be grouped by topic/feature instead of having functional tests separate. Therefore I am proposing dropping the tests/functional directory and moving existing tests into the existing structure.Dropping the tests/functional directory
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Dropping the tests/functional directory
I am not sure whether there was a good reason for having functional tests separate in the tests/functional directory or whether it was just for technical reasons. PHPUnit's grouping annotation (
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Dropping the tests/functional directory
I like having the separation so that I know which ones are functional and which aren't without having to look inside the file. But I suppose I would be okay with this if you guys decide to do this.
Re: Dropping the tests/functional directory
+1 to that.imkingdavid wrote:I like having the separation so that I know which ones are functional and which aren't without having to look inside the file. But I suppose I would be okay with this if you guys decide to do this.
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: Dropping the tests/functional directory
Well, they are in different test suites, so from that perspective I guess it makes sense. On the other hand, you have to visit two places when it comes to the question whether something has test coverage.
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Dropping the tests/functional directory
Can we add "_functional" or prefix with "functional_" to all functional test files? If so, that would eliminate the need for a separate folder.
Re: Dropping the tests/functional directory
I am not seeing how functional tests (which cover multiple units) would fit into unit test directory structure.
I cannot recall a single project that mixed unit and functional tests like that.
I wrote test suites that folded unit tests into integration tests, but this is opposite direction of what is being proposed here.
Let's see the patch doing just the renames?
I cannot recall a single project that mixed unit and functional tests like that.
I wrote test suites that folded unit tests into integration tests, but this is opposite direction of what is being proposed here.
Let's see the patch doing just the renames?
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: Dropping the tests/functional directory
I haven't done any work for this yet, basically just wanted to know whether there was a good reason for having them separate.Oleg wrote:Let's see the patch doing just the renames?
Re: Dropping the tests/functional directory
would be my concern.Oleg wrote:I am not seeing how functional tests (which cover multiple units) would fit into unit test directory structure.
What is an example situation where it is unclear where a test for something is?
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Dropping the tests/functional directory
I don't think he's concerned that it's unclear whether or not a test exists for a given feature, I think he's more concerned with having to check multiple places to find it out.
Re: Dropping the tests/functional directory
Do we not have anything that checks code coverage of phpBB?
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"