Skip to content

Commit

Permalink
Merge pull request #3 from saasbook/dev-qa
Browse files Browse the repository at this point in the history
fix autograder, add first ruby intro page, update path references
  • Loading branch information
sme777 committed May 5, 2021
2 parents 9da9cc7 + 3d9085d commit 96f8982
Show file tree
Hide file tree
Showing 13 changed files with 397 additions and 369 deletions.
8 changes: 5 additions & 3 deletions autograder/saas_grade.py
Expand Up @@ -32,9 +32,11 @@
print('%s' % (record['exception']['message']))
print('')

codio_points = int(passed_points * base_points/total_points)

print("<b><span> Your program got %d out of %d points </span></b>" % (passed_points, total_points))
codio_points = 0 if total_points == 0 else int(passed_points * base_points/total_points)
if total_points == 0:
print("<b><span> Your program got 0 points. </span></b>")
else:
print("<b><span> Your program got %d out of %d points. </span></b>" % (passed_points, total_points))

print('</p>')

Expand Down
5 changes: 5 additions & 0 deletions build_codio.json
Expand Up @@ -54,6 +54,11 @@
"autograder": {
"src": "solutions/spec"
}
},
{
"Gemfile": {
"src": "solutions/Gemfile"
}
}
]
}
Expand Down
354 changes: 159 additions & 195 deletions scaffolding/codio/assessments.json
@@ -1,199 +1,163 @@
[
{
"type": "test",
"taskId": "test-1979733178",
"source": {
"name": "hw-ruby-intro-part 1",
"showName": false,
"instructions": "To submit your solution to Part 1, click the button below.",
"command": "bash .guides/secure/grader.sh 1",
"arePartialPointsAllowed": true,
"timeoutSeconds": 300,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 100,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
{
"type": "test",
"taskId": "test-1979733178",
"source": {
"name": "hw-ruby-intro-part 1",
"showName": false,
"instructions": "To submit your solution to Part 1, click the button below.",
"command": "bash .guides/secure/grader.sh 1",
"arePartialPointsAllowed": true,
"timeoutSeconds": 300,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 100,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
},
{
"name": "Content",
"value": "Arrays, Hashes, and Enumerables"
},
{
"name": "Programming Language",
"value": "Ruby"
},
{
"name": "CHIP",
"value": "hw-ruby-intro"
}
],
"files": [
"assignment/lib/ruby_intro.rb",
".guides/grader.sh",
".guides/saas_grade.py"
],
"layout": "2-panels-tree",
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "6",
"learningObjectives": ""
},
{
"name": "Content",
"value": "Arrays, Hashes, and Enumerables"
"linkedId": "c9da0dd0-fb6b-48a1-ade8-971d6e7d61be",
"libraryId": "288c973f-aab2-45db-96cd-18a442d94b10",
"version": 2
},
{
"type": "test",
"taskId": "test-945754669",
"source": {
"name": "hw-ruby-intro-part 2",
"showName": false,
"instructions": "To submit your solution to Part 2, click the button below.",
"command": "bash .guides/secure/grader.sh 2",
"arePartialPointsAllowed": true,
"timeoutSeconds": 300,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 100,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
},
{
"name": "CHIP",
"value": "hw-ruby-intro"
},
{
"name": "Content",
"value": "Strings and Regular Expressions"
},
{
"name": "Programming Language",
"value": "Ruby"
}
],
"files": [
"assignment/lib/ruby_intro.rb",
".guides/secure/grader.sh",
".guides/secure/saas_grade.py"
],
"layout": "2-panels-tree",
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "6",
"learningObjectives": ""
},
{
"name": "Programming Language",
"value": "Ruby"
"libraryId": "288c973f-aab2-45db-96cd-18a442d94b10",
"version": 1,
"linkedId": "d73a59a0-ce36-448e-b72b-23f335938445"
},
{
"type": "test",
"taskId": "test-2550083281",
"source": {
"name": "hw-ruby-intro-part 3",
"showName": false,
"instructions": "To submit your solution to Part 3, click the button below.",
"command": "bash .guides/secure/grader.sh 3",
"arePartialPointsAllowed": true,
"timeoutSeconds": 300,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 100,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
},
{
"name": "CHIP",
"value": "hw-ruby-intro"
},
{
"name": "Content",
"value": "Object Oriented Design"
},
{
"name": "Programming Language",
"value": "Ruby"
}
],
"files": [
"assignment/lib/ruby_intro.rb",
".guides/secure/grader.sh",
".guides/secure/saas_grade.py"
],
"layout": "2-panels-tree",
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "6",
"learningObjectives": ""
},
{
"name": "CHIP",
"value": "hw-ruby-intro"
}
],
"files": [
"assignment/hw-ruby-intro/lib/ruby_intro.rb",
".guides/grader.sh",
".guides/saas_grade.py"
],
"layout": "2-panels-tree",
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/hw-ruby-intro/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "6",
"learningObjectives": ""
},
"linkedId": "c9da0dd0-fb6b-48a1-ade8-971d6e7d61be",
"libraryId": "288c973f-aab2-45db-96cd-18a442d94b10",
"version": 2
},
{
"type": "test",
"taskId": "test-60900984",
"source": {
"name": "asdf",
"showName": true,
"instructions": "",
"command": "asdf",
"arePartialPointsAllowed": false,
"timeoutSeconds": 40,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 1,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
}
],
"files": [
"assignment/hw-ruby-intro/lib/ruby_intro.rb"
],
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/hw-ruby-intro/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "",
"learningObjectives": ""
}
},
{
"type": "test",
"taskId": "test-945754669",
"source": {
"name": "hw-ruby-intro-part 2",
"showName": false,
"instructions": "To submit your solution to Part 2, click the button below.",
"command": "bash .guides/secure/grader.sh 2",
"arePartialPointsAllowed": true,
"timeoutSeconds": 300,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 100,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
},
{
"name": "CHIP",
"value": "hw-ruby-intro"
},
{
"name": "Content",
"value": "Strings and Regular Expressions"
},
{
"name": "Programming Language",
"value": "Ruby"
}
],
"files": [
"assignment/hw-ruby-intro/lib/ruby_intro.rb",
".guides/grader.sh",
".guides/saas_grade.py"
],
"layout": "2-panels-tree",
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/hw-ruby-intro/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "6",
"learningObjectives": ""
},
"libraryId": "288c973f-aab2-45db-96cd-18a442d94b10",
"version": 1,
"linkedId": "d73a59a0-ce36-448e-b72b-23f335938445"
},
{
"type": "test",
"taskId": "test-2550083281",
"source": {
"name": "hw-ruby-intro-part 3",
"showName": false,
"instructions": "To submit your solution to Part 3, click the button below.",
"command": "bash .guides/secure/grader.sh 3",
"arePartialPointsAllowed": true,
"timeoutSeconds": 300,
"guidance": "",
"showGuidanceAfterResponse": false,
"points": 100,
"oneTimeTest": false,
"metadata": {
"tags": [
{
"name": "Assessment Type",
"value": "Advanced Code Test"
},
{
"name": "CHIP",
"value": "hw-ruby-intro"
},
{
"name": "Content",
"value": "Object Oriented Design"
},
{
"name": "Programming Language",
"value": "Ruby"
}
],
"files": [
"assignment/hw-ruby-intro/lib/ruby_intro.rb",
".guides/grader.sh",
".guides/saas_grade.py"
],
"layout": "2-panels-tree",
"opened": [
{
"type": "file",
"panelNumber": 0,
"content": "assignment/hw-ruby-intro/lib/ruby_intro.rb"
}
]
},
"bloomsObjectiveLevel": "6",
"learningObjectives": ""
},
"libraryId": "288c973f-aab2-45db-96cd-18a442d94b10",
"version": 0
}
]
"libraryId": "288c973f-aab2-45db-96cd-18a442d94b10",
"version": 0
}
]

0 comments on commit 96f8982

Please sign in to comment.