<div dir="ltr">On 18 May 2013 09:21, Aneesh Dogra <span dir="ltr"><<a href="mailto:lionaneesh@gmail.com" target="_blank">lionaneesh@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,<div><br></div></div></blockquote><div><br></div><div>Hey!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div></div><div>I was wondering on how would we preserve the history of sugar-html-core repository?</div></div></blockquote><div><br></div><div>See below.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div></div><div><b>Secondly,</b> I guess the only thing I need to do is to make another repository add bus.js to it and edit other files in sugar-html-template, sugar-html-core and sugar-build according to that change. Is there anything else I need to do?</div>
<div><br></div></div></blockquote><div><br></div><div>Pretty much. Make two clones of sugar-html-core (to preseve history), rename each to sugar-html-bus and sugar-html-activity, edit and remove stuff from them. Update sugar-html-template, try to make an activity from it and test that activity closing still works. Update sugar-build to pull the new repos.<br>
</div><div><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><b>Third: Regarding the test framework.</b> Do we use Jasmine to write tests? If yes, how do we test socket communications? </div>
</div></blockquote><div><br></div><div>At the moment we are using jasmine and karma as a runner. Manuel is still researching so it might change. Though I tend to think it's fine to start developing some bits on jasmine/karma (ccing Manuel to get his opinion about this too), it will help us to make a more informed decision and I suspect whatever we choose it won't be hugely different, so adapting will not be a lot of work.<br>
</div><div><br></div><div>To be able to test the bus, we need to setup the runner to run stuff inside sugar. I posted some details about it in other threads. I can probably do that for you after I got the build under control again. Or you can give it a try, I guess it make sense to re-discuss after you are done with the split.<br>
<br></div><div>About the tests themself, I think we should start adding a sendMessage test. In sugar we can add TestAPI to apisocket.py. Maybe just an echo(text) message. Then in the unit test we can try to send a test.echo("Hello!") message and verify that we get the expected response.<br>
<br>We will need tests for the streams too, but perhaps that's a second step.<br></div></div></div></div>