Re: [SMW-devel] unit tests and acceptance tests of SMW+SF+SRF+...
On 24.08.2012 16:58, Jeroen De Dauw wrote: Hey, The unit tests create temporary tables themselves to work with, so no cleanup required :) This is indeed the case, as long as you indicate the tests to be in the Database group using the @group Database annotation. Important to not forget that :) How unit indicates which tables (part of schema) should be created for particular test? Also, I guess that for many tests empty schema is not enough, one probably should provide some pre-defined values for table row fields. @group Database is not enough for that. Dmitriy -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] unit tests and acceptance tests of SMW+SF+SRF+...
Hey, How unit indicates which tables (part of schema) should be created for particular test? They don't - all tables are made available to the tests. Also, I guess that for many tests empty schema is not enough, one probably should provide some pre-defined values for table row fields. @group Database is not enough for that. This is possible, in which case your particular test first needs to populate the db. Be sure to use the proper abstraction layers for this - I've seen people write tests that break encapsulation badly and then break as soon as you change a bit around somewhere. Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. -- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] unit tests and acceptance tests of SMW+SF+SRF+...
Hi everyone! Two questions I have: 1. Can you share your experience about testing SMW-based systems? For example now we're upgrading all the versions of MediaWiki, SMW and other extensions and we're getting very alarmed how to ensure if the result works without errors. Intuitively for manual testing we need the set of pages, properties and forms that uses all features of SMW-extensions. Does anybody have such a test case? Or can we use another testing strategy? 2. We want to use the latest wmf version of MediaWiki as the base platform of our wiki. Is this a wise idea in your opinion or should we use the stable version? Sincerely yours, Yury Katkov -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] unit tests and acceptance tests of SMW+SF+SRF+...
Hey, We want to use the latest wmf version of MediaWiki as the base platform of our wiki. Is this a wise idea in your opinion or should we use the stable version? These versions of MediaWiki tend to be pretty stable on themselves. However, if you use them, you might end up running into compatibility issues with the latest release of SMW. To avoid that, you could run the latest code of SMW, which most of the time works fine with these WMF MW versions, but running the latest SMW code (ie git master) can lead to stability issues. I'm running the latest of both, and so is translatewiki.net. It works as long as occasional breakage (which is usually fixed pretty quickly) is acceptable to you. Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. -- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel