User:Filiptanu

Introduction
My name is Filip Tanurovski. I come from Macedonia. I'm in my last year of studies at the Faculty of Computer Science and Engineering. I'm interested in web development, both front and back end. I have knowledge of HTML, CSS, PHP, MySQL, but also of C/C++, Java, OpenGL, Prolog, Lisp. I'm currently learning JavaScript.

Apart from studying programming I train water polo, I play guitar and lately I started learning 3D modeling and animation.

Identity:
Name: Filip Tanurovski Project title: Adding unit tests to SMW Contact/working info: Email: filiptanu (at) gmail (dot) com Skype: f.tanu Timezone: Europe/Skopje (GMT+1) Typical working hours: 10:00 - 22:00

Project summary:
I will to write tests for the SMW core (and possibly extensions if time permits) using the PHPUnit testing framework so that core developers can easily detect any errors and fix them as fast as possible.

Deliverables:
a) Required deliverables: I will start with writing tests for DataValues and DataItems classes andcontinue with the rest of the core classes with mentor guidance.

b) If time permits: Familiarize myself with some of the extensions and start writing tests for them.

Project Schedule:

 * April: familiarize myself with Git; familiarize myself with the architecture of Semantic MediaWiki
 * May: coordinate with mentor and plan which classes should I give priority to in writing the tests.
 * May 21st: coding starts
 * 1) first part: write unit tests for the SMW core.
 * end of May - mid June: exams (I will have less time, probably will dothe coding in the evenings).
 * July 9-13: mid-term evaluations
 * 2) second part: consulting and coordination with mentor, finishing the core tests and if all is ok, moving on to writing tests for extensions.
 * April 13-20: pencils down

Test for the SMWDIBoolean class
-SMWTest.php: assertEquals( $bool->getDIType, SMWDataItem::TYPE_BOOLEAN ); $this->assertTrue( $bool->getBoolean ); $this->assertSame( $bool->getSerialization, 't'); $this->assertEquals( $bool->getSortKey, 1); $this->assertEquals( $bool->doUnserialize('t'), new SMWDIBoolean( true ) ); }	} ?> -I have added these lines at the end of SMW_Settings.php: $wgHooks['UnitTestsList'][] = 'efSMWUnitTests';

function efSMWUnitTests( &$files ) { $files[] = dirname( __FILE__ ). '/SMWTest.php'; } -Command line call: C:\xampp\php>php C:\xampp\htdocs\mediawiki\tests\phpunit\phpunit.php C:\xampp\htdocs\mediawiki\extensions\SemanticMediaWiki\SMWTest.php -Command line output: PHPUnit 3.5.14 by Sebastian Bergmann.

. Time: 0 seconds, Memory: 8.75Mb

OK (1 test, 5 assertions)