Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

need instructions on how to run grader from command line #61

Open
tansaku opened this issue Jan 18, 2016 · 4 comments
Open

need instructions on how to run grader from command line #61

tansaku opened this issue Jan 18, 2016 · 4 comments
Assignees
Labels

Comments

@tansaku
Copy link
Contributor

tansaku commented Jan 18, 2016

In situations where a live grader is not available it's important that users can run the grader locally from the command line to check a possible solution.

One can do that directly with rspec like so:

bundle exec rspec -r ../hw-oracle-of-bacon/lib/oracle_of_bacon.rb autograder/oracle_of_bacon_spec.rb

but this won't generate a grade per se. We should check we can grade from the command line and document the process

@tansaku tansaku added the ready label Jan 18, 2016
@armandofox
Copy link
Contributor

the main rag wiki would be a good place to document this
could also be useful for students to self-test their code

Armando Fox
Professor, Computer Science Division
Faculty Advisor, UC Berkeley MOOCLab
fox .at. cs .dot. berkeley .dot. edu
581 Soda Hall MC#1776, Berkeley, CA 94720-1776
+1.510.642.6820 / http://www.cs.berkeley.edu/~fox

TAKE MY CLASS FOR FREE VIA edX: http://saas-class.org
LIKE IT ON FACEBOOK: http://facebook.com/saas-class
TRY MY BOOK (NOT FREE): http://www.saasbook.info (goes with the course)

On Jan 18, 2016, at 2:37 AM, Sam Joseph notifications@github.com wrote:

In situations where a live grader is not available it's important that users can run the grader locally from the command line to check a possible solution.

One can do that directly with rspec like so:

bundle exec rspec -r ../hw-oracle-of-bacon/lib/oracle_of_bacon.rb autograder/oracle_of_bacon_spec.rb
but this won't generate a grade per se. We should check we can grade from the command line and document the process


Reply to this email directly or view it on GitHub.

@zhangaaron
Copy link
Contributor

Was working on a version of command line grader to simplify testing of the autograder in continuous integration. This is also another use of it I haven't thought of and a great idea.

@tansaku
Copy link
Contributor Author

tansaku commented Jan 26, 2016

@zhangaaron we had the ability to run from the command line in the previous system through a series of scripts in the root directory - I'm sure there's a better solution

@tansaku
Copy link
Contributor Author

tansaku commented Feb 9, 2016

@zhangaaron I was about to start working on making a command line interface, but you mention you were already working on a version, which gives me pause for thought. We have related issues here, specifically:

I guess I'm going to switch to writing up some engineering flow documentation, on the offchance that I'll be duplicating work you've already started. In the meantime could you share any code you've started on for a command line grader?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants