Starter Task for Blocks Language Front End

22 views
Skip to first unread message

Vishnu Teja [:ythej]

unread,
Mar 12, 2015, 11:52:08 AM3/12/15
to plasma-u...@googlegroups.com, eto...@cs.umass.edu
Hi,

I like to do test with Mocha, Chai for assert library, Sinon for stubs and spies. I have a PR which involves a small unit test using the specified framework.


Ofcourse, this is not complete starter task but I would just like to ask you if it is fine implementing this way. I have written some comments also on github.

Please give me the feedback and let me if we have some mock jsonobject which would be used for unit tests.

Thank you.

Emma Tosch

unread,
Mar 12, 2015, 12:52:06 PM3/12/15
to Vishnu Teja [:ythej], plasma-u...@googlegroups.com
The testing framework can always be inserted later. What’s important for the starter task is being able to understand what’s going on in SurveyMan/surveyman.js. 

This repository used to live in SurveyMan/SurveyMan, but was split out into its own repository. It implements a subset of the functionality found in SurveyMan/SurveyMan.

What I want to see in the starter task is that you can understand the relationships between the objects. The schemata for the objects live in SurveyMan/Schemata. However, there is a globals file that contains a dump of an example survey.

If there is a testing framework that you like and already know how to use, go ahead and use it. However, if setting up that testing framework requires more knowledge about the system than you currently have, then I would rather see you spend your time showing me that you can read and understand the structure of a Survey object and how the interpreter executes a survey program. For example, don’t worry about mocks for now. Just instantiate examples. You can have something as simple as a set of boolean functions that test invariants. Execute these functions at the end of the file and print out the results. Pushing these functions into a testing framework is something that can be done at a later time. 

Vishnu Teja [:ythej]

unread,
Mar 12, 2015, 1:24:06 PM3/12/15
to plasma-u...@googlegroups.com, yvt...@gmail.com
okay, I got that. Can I please talk to you on IRC for further doubts I have? Please let me know when I can ping you.

Thanks a lot.

Vishnu Teja [:ythej]

unread,
Mar 12, 2015, 1:49:39 PM3/12/15
to plasma-u...@googlegroups.com, yvt...@gmail.com, eto...@cs.umass.edu
okay, I got that. I am facing some difficulty and have some particular doubts. Please pong me on IRC when you are free.

Thank you.


On Thursday, March 12, 2015 at 10:22:06 PM UTC+5:30, Emma Tosch wrote:
Reply all
Reply to author
Forward
0 new messages