Is it possible to output the value of an array to the test summary so that it can be manually checked if necessary?
For example, I have an array called 'matchedRows' and it contains the values [ 0, 2, 3, 8, 9, 10, 11, 16, 17, 19, 20, 24 ] which are the row numbers found in a previous test. I was hoping to write something like:
orCode:expect(matchedRows).toBeNan;
and the contents of the array to be shown in the Sencha Test summary with a passed test. However, as the tests pass they are not outputted to the summary.Code:Expect(matchedRows).toThrowError;
I can write something like the following and the tests will pass and each element of the array will be disaplayed in the Sencha Test Summary but I wanted to output the whole array in one line.
Basically, I would like to know how to force the output of a test to the summary even if it passes so that I can show the contents of an array.Code:if(noMatch.length > 0) { for (i = 0; i < matchedRows.length; i ++) { expect(matchedRows[i]).toBeLessThan(999); } }
Many thanks.