Hey Jelte, I'm feeling your pain. I just wrote a ton of tests for a11y and it is a pain having to generate new html files just so I can know which test was failing. I spoke with the team and they said it's something we need to improve but I don't think there are any immediate concrete plans in place.
On Thu, Jul 31, 2014 at 9:57 AM, 'Jelte Liebrand' via Polymer < [email protected]> wrote: > Hi, > > We've been adding a bunch of polymer elements to our code (kudos btw, > polymer rocks!), and have been following the same pattern for testing as > the polymer elements themselves. > > One problem with this approach is that since the tests run inside an > iframe (when run from the commandline), it is hard to debug any errors. > We've extended our local copy of htmlTest.js and mocha-htmlTest.js a bit to > improve this by > > a- allowing the test inside the iframe to use mocha (with a special > reporter that postMessages results to the parent frame) > b- serialising Error objects such that callstacks are preserved when sent > to the parent frame > c- posting console.log messages to the parent frame > > But even with these changes, it's not always straight forward to spot what > is going wrong. On top of that, our "hacks" are somewhat bolted on to the > side, rather than something that is very extensible. > > Do you (or perhaps the karma team) have any plans for improvements here? > Or should we continue to tweak the existing parent vs iframe communication > a bit more to help with developing/debugging elements? > > /Cheers, > Jelte > > Jelte Liebrand | Software Engineer | [email protected] > <[email protected]> | +1 (415) 318 6507 > > Follow Polymer on Google+: plus.google.com/107187849809354688692 > --- > You received this message because you are subscribed to the Google Groups > "Polymer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/CAOOg8mr-KDB0SoMu2XJZxRKaZTiEaSmuPnDKfV6rpDngZYPD0g%40mail.gmail.com > <https://groups.google.com/d/msgid/polymer-dev/CAOOg8mr-KDB0SoMu2XJZxRKaZTiEaSmuPnDKfV6rpDngZYPD0g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJj5OwDeq3kdBDW5HS6iFk%3DM6GqHbRWQMrDP6xHTUdJdXk6KQw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
