Implement test_lesson and test_course functions#15
Implement test_lesson and test_course functions#15ChihChengLiang wants to merge 13 commits intoswirldev:masterfrom
Conversation
|
Hi @wush978 and @ChihChengLiang, Swirlify is about to undergo some major API changes, but both of your contributions will be incorporated. I plan to submit swirlify to CRAN by the end of October. If you'd like to appear as contributors to the package please tell me your first and last names so I can add them to the description. |
|
Thanks @seankross , the names are |
|
Hi @wush978 and @ChihChengLiang, I have a suggestion. Perhaps instead of stopping, the user should be notified which question doesn't pass the test, and then the testing should continue. If you don't have time to implement this change I understand and I'll get around to it. |
|
Dear @seankross , The suggestion is really interesting! Unfortunately, we have no time to implement the feature in this month. Please don't hesitate to continue the awesome work. |
|
Hi @ChihChengLiang and @wush978, I've merged this into the development version of swirlify, but right now there are some corner cases for this scheme of testing that worry me. For example: if the student creates a function during the lesson and then is instructed to use that function in a command question later on, how will the environment be aware of that function? Another detail is the use of Sean |
|
Dear Sean, Thanks for your feedback. In general, I think the best strategy (for a volunteer) is to keep updating this feature if we find any new corner cases. Recently I extend this feature to test script question and I'll update it. Keep it opened should be a good idea.
In my opinion, the question is "how will swirl do if the user skip the |
|
@wush978 I agree 100%. I truly appreciate the volunteer work that both of you do. I think this will be the main feature of swirlify 0.5 but it won't make it into swirlify 0.4. |
script test: fix entering condition and script path
implement test for script question
|
Hi @seankross , I just add the script for testing script course to the PR. Moreover, I am trying to use our test script to check the course in https://github.com/swirldev/swirl_courses. Here is a prototype of checking: https://travis-ci.org/wush978/swirlify/builds/91589457. Do you think if we could check the courses in there and make them all pass the test script? |
|
Hi @wush978, This is great! Integrating travis to check courses is really good idea. Thanks for working on this! |
|
Dear @seankross, I guess the latest update could solve your problem in #15 (comment). As shown in https://travis-ci.org/wush978/swirlify/builds/91776480#L2537, the lack of |
resolving #14
Dear maintainers,
In this pull request the test_lesson and test_course functions are implemented. Thanks to Wush's guidance.
I am also considering writing a tests for these functions by testing a sample course in inst/ dir. Let me know is the idea plausible or is there a better way to do it.
Thanks and best regards,
Chih-Cheng