On 2013-10-10 21:18, Jeroen De Dauw wrote:
I don't know about doing this with the MediaWiki tests, though I'm doing
something very similar for the code I work on. All my repos have a
phpunit.xml file in their root, so you can just run "phpunit" in there and
have all the tests run. Which is the standard way of doing things, and
recognized by lots of IDEs and plugins.

Right, yea, I actually tried quite the similar thing, by copying the suite.xml file in <wikipath>/tests/phpunit into my RDFIO tests folder, and modified the paths to include the RDFIO tests only.

The problem remeined still though, that in order to subclass the MediaWikiTestCase in my tests (to get its functionality for accessing the database etc), I still had to run the tests through MediaWiki's phpunit.php file, otherwise it would not find all the required classes and stuff it uses.

I'm currently using this handly little Node script to run my tests on file
change: https://npmjs.org/package/phpunit-testrunner

Or "grunt watch" in the repos where I'm using the Grunt task runner. When
running Linux you can write a 3 line bash script that already gets you most
of the value. As long as there is a sane test runner that is...

What tests do you want to run anyway? Not all MW tests I imagine, as they
take many minutes to run,

Exactly ... only the RDFIO tests. But still would like to be happy to subclass the MediaWikiTestCase.

Also, indeed, I can (and have) set up a little bash script that runs the tests with "watch" every 5 seconds or so, and greps for the string "FAILURES" in the output. If I set this in a little tiny terminal window that is always on top on the desktop, it almost works OK ...

... it's just that it is always nicer to have everything integrated in the IDE :)

Anyway, many thanks for the pointers!

Cheers
// Samuel


--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil. ~=[,,_,,]:3
--
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


--
Developer at www.uppmax.uu.se & www.farmbio.uu.se
M: [email protected]
G: [email protected]
S: samuellampa
P: +4670-2073732
T: @smllmp
B: saml.rilspace.org


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to