Asynchronous test reporters

81 views
Skip to first unread message

Marcus Ilgner

unread,
May 10, 2012, 6:25:52 AM5/10/12
to jasmi...@googlegroups.com
Hello all,

using Jasmine in our Windows 8 WinJS application, I enhanced the JUnit XML reporter from https://github.com/larrymyers/jasmine-reporters to support this environment. 
The thing with WinJS however is that all filesystem access is asynchronous and I'd like to ensure that the file has actually been written to disk when returning from reportRunnerResults()
Yet all method calls to the reporter are synchronous and I have no idea how to do that without a complete rewrite of the Jasmine framework to support.
Maybe someone can give me a tip how to achieve this.

All the best
Marcus

P.S.: in case anyone is interested, we plan to open source our WinJS-testing-related libraries and library patches as soon as they're ready

Davis W. Frank

unread,
May 10, 2012, 9:43:20 AM5/10/12
to jasmi...@googlegroups.com
Exciting!

Do you really need the JUnit file to be written to disk in order for the suite to continue? If it's asynchronous and part of the framework, I'd trust that it writes and then let the suite continue.

That said, I'd expect that you'd want to catch errors on write and report those too. Not sure the best way to notify in that case.

Thanks for using Jasmine!

--dwf

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/Kr9QamAOsc4J.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.



--
thx,
--dwf

Derick Bailey

unread,
Jul 20, 2012, 2:07:37 PM7/20/12
to jasmi...@googlegroups.com
Hi All,

I've been working with Jasmine in WinJS/Win8 for about 2 weeks now, and have been working up some stuff to make testing WinJS.Promise and async jasmine tests much easier. Here's a gist of what I've got going so far:


Let me know what you think.

  -- Derick

Derick Bailey
@derickbailey 
http://derickbailey.lostechies.com

On Wednesday, July 18, 2012 at 5:09 AM, gekorob wrote:

Hi Markus,
  I'm very interested in testing Windows 8 WinJS with jasmine and I read your post with interest.
Have made progress about that? I'm a rookie in WinJS but I've used a lot Jasmine with rails, so maybe I can contribute in something.

Please let me know, cause I want to start a new development in Windows8 and I'm considering winjs and javascript in general as my preferred environment.

Bye
--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/qpVHHKe-OloJ.
Reply all
Reply to author
Forward
0 new messages