RE: [FLEXUNIT, TLF] Problem with applying appropriate data for tests

2015-03-03 Thread Michael A. Labriola
checkfirstBaselineOffset and checkColumnWidthOnGapChangeTest

I will create - https://paste.apache.org/7Qka

This is pretty close to what I was suggesting in my original comment.

Mike



RE: [FLEXUNIT, TLF] Problem with applying appropriate data for tests

2015-03-03 Thread piotrz
Michael,

I've just committed my changes and applied it to one test class. You can
take a look into that.

I'm filtering data inside loader based on the tests name:

https://git1-us-west.apache.org/repos/asf?p=flex-tlf.git;a=commit;h=6155a8ab

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FLEXUNIT-TLF-Problem-with-applying-appropriate-data-for-tests-tp45201p45390.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FLEXUNIT, TLF] Problem with applying appropriate data for tests

2015-03-02 Thread piotrz
One solution which came up to my mind is create for every test's methods data
loader.

So for example if we have two test methods which has some configuration:

checkfirstBaselineOffset and checkColumnWidthOnGapChangeTest

I will create - https://paste.apache.org/7Qka

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FLEXUNIT-TLF-Problem-with-applying-appropriate-data-for-tests-tp45201p45343.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FLEXUNIT, TLF] Problem with applying appropriate data for tests

2015-02-28 Thread piotrz
Hi Michael,

I did my own custom data loader and it's working fine. I will describe you
everything on a simpler example. Maybe I don't understand something.

1) I've created my Test class 

https://paste.apache.org/juCo

My TestConfigurationLoader class loading data from xml into my data
provider dp. Inside my loader I'm parsing xml and create custom Vo
objects. My array will have 188 objects after parsing.

2) I'm creating a custom Rule - As you probably know Rule is launching
before any test method class is launch. 

https://paste.apache.org/8TUw

I'm removing items from array - Leave only one.

3) First test is launching testTest. I see in the debugger that in my data
provider dp I have 1 item, but my test is launching 188 times. Why ? -
This is the point which I don't understand. Any idea ?

Piotr





-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FLEXUNIT-TLF-Problem-with-applying-appropriate-data-for-tests-tp45201p45312.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.