Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

Misc QA fixes for review#1

Merged
CloCkWeRX merged 4 commits into
pear:masterfrom
CloCkWeRX:master
Nov 6, 2011
Merged

Misc QA fixes for review#1
CloCkWeRX merged 4 commits into
pear:masterfrom
CloCkWeRX:master

Conversation

@CloCkWeRX

Copy link
Copy Markdown
Member

So; with Jenkins now available - how do we feel about phpunit 3.6, a build.xml (implying ant), dropping AllTests, etc?

@till

till commented Nov 6, 2011

Copy link
Copy Markdown
Member

I don't mind either. Maybe we can pre-process this before the job runs?

Pull request looks good: +1

@cweiske

cweiske commented Nov 6, 2011

Copy link
Copy Markdown
Member

I'd rather use phing than ant, but I'm ok with dropping alltests (as long as we have something that pear can use with run-tests )

@CloCkWeRX

Copy link
Copy Markdown
Member Author

@till - when you say preprocess; what do you mean?
@cweiske - pear run-tests supports phpunit AllTests out of the box? Or at least can be told "pear run-tests tests/AllTests.php" and have it treat it like a normal PHP file? What does it do with the results?

CloCkWeRX added a commit that referenced this pull request Nov 6, 2011
Misc QA fixes for review
@CloCkWeRX CloCkWeRX merged commit 6c339be into pear:master Nov 6, 2011
@till

till commented Nov 6, 2011

Copy link
Copy Markdown
Member

@CloCkWeRX: I mean, I wouldn't go through all packages and delete AllTests.php now. I'd tell people it's not necessary anymore so new packages don't do it or current packages can update when they get around to it.

Also, I'd probably try to leverage a phpunit.xml (somehow) because it makes bootstrapping tests with phpunit very simple.

Generally, I'm not sure how jenkins is being setup, but maybe that part would just do whatever is necessary to run tests.

@CloCkWeRX

Copy link
Copy Markdown
Member Author

@till - I agree - I've been doing two main types of jobs.

  1. phpunit --with-lots -of flags tests/[AllTests.php if needed]
  2. build.xml + phpunit.xml when there are external libraries; and the jenkins build has ~3+ custom commands to manage it.

@cweiske

cweiske commented Nov 7, 2011

Copy link
Copy Markdown
Member

Hello Daniel,

@till - when you say preprocess; what do you mean?
@cweiske - pear run-tests supports phpunit AllTests out of the box?
Or at least can be told "pear run-tests tests/AllTests.php" and have
it treat it like a normal PHP file? What does it do with the results?

See http://pear.php.net/bugs/bug.php?id=10834
and http://pear.php.net/bugs/bug.php?id=11883
which implemented phpunit alltests support

Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants