@@ -131,6 +131,34 @@ func TestExamplesInTheWild(t *testing.T) {
131131 assert .Equal (t , testcase , suites [0 ].Tests [0 ])
132132 },
133133 },
134+ {
135+ title : "fastlane example" ,
136+ filename : "testdata/fastlane-trainer.xml" ,
137+ check : func (t * testing.T , suites []Suite ) {
138+ assert .Len (t , suites , 1 )
139+ assert .Len (t , suites [0 ].Tests , 4 )
140+
141+ var testcase = Test {
142+ Name : "testSomething()" ,
143+ Classname : "TestClassSample" ,
144+ Duration : 342 * time .Millisecond ,
145+ Status : StatusFailed ,
146+ Error : Error {
147+ Message : "XCTAssertTrue failed" ,
148+ Body : "\n " ,
149+ },
150+ Properties : map [string ]string {
151+ "classname" : "TestClassSample" ,
152+ "name" : "testSomething()" ,
153+ "time" : "0.342" ,
154+ },
155+ }
156+
157+ assert .Equal (t , testcase , suites [0 ].Tests [2 ])
158+ assert .EqualError (t , suites [0 ].Tests [2 ].Error , "XCTAssertTrue failed" )
159+ assert .EqualError (t , suites [0 ].Tests [3 ].Error , "NullPointerException" )
160+ },
161+ },
134162 }
135163
136164 for index , test := range tests {
0 commit comments