Automated testing: Convert database into xml fixture

Discuss general development subjects that are not specific to a particular version like the versioning control system we use or other infrastructure.
Post Reply
User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Automated testing: Convert database into xml fixture

Post by brunoais » Fri Mar 13, 2015 10:22 pm

Is there a way to convert a current DB state into a fixure?
I'm not sure about which data is used for some of the operation that are required to be made for testing a new feature I'm adding (the boolean improvement for built queries) and my "read topics started by other users" extension.
I already know what I want to test, I just don't know how to tell the framework how to setup the test for me.
About this, I read this part:
https://wiki.phpbb.com/Automated_Tests
I don't think that there's anything else about the subject.
The main reason why such conversion is useful is because I'm not sure which tables and which data is minimal for some of the operations I'm trying to test for both.

User avatar
VSE
Extension Customisations
Extension Customisations
Posts: 670
Joined: Mon Mar 08, 2010 9:18 am

Re: Automated testing: Convert database into xml fixture

Post by VSE » Sun Mar 15, 2015 5:09 pm

No there isn't.

Look at the tests for phpBB for guidance There are tons of fixtures that will serve as examples for you.
Has an irascible disposition.

User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Re: Automated testing: Convert database into xml fixture

Post by brunoais » Sun Mar 15, 2015 5:40 pm

Oh well... I tried.
I just wanted to make sure that I could do tests to my extension with the forum state that I have on my local test (without forgetting anything).
Given that, I'll have to find which tables contain relevant information for the objective.... That will take some time...

Post Reply