If you run that rspec command in a project with no points (like base-rails) it produces something like:
{"version":"3.9.0","examples":[
{"description":"has no tests","full_description":"This project has no tests",
"hint":null,"status":"passed",
"points":null,"file_path":"./spec/features/dummy_spec.rb",
"line_number":4,"run_time":0.00346}],
"summary":
{"duration":0.007012,"example_count":1,"failure_count":0,
"pending_count":0,"total_points":0,"earned_points":0,"score":null},
"summary_line":"1 tests, 0 failures, 0/0 points, NaN%"}%
This change updates
{"version":"3.9.0","examples":[
{"description":"has no tests","full_description":"This project has no tests",
"hint":null,"status":"passed",
"points":null,"file_path":"./spec/features/dummy_spec.rb",
"line_number":4,"run_time":0.001988}],
"summary":
{"duration":0.003999,"example_count":1,"failure_count":0,
"pending_count":0,"total_points":0,"earned_points":0,"score":null},
"summary_line":"1 tests, 0 failures, 0/0 points, This project is not graded."}%
Resolves firstdraft/grades#404
After countless piazza questions about NaN% :
Since
rails grade
is just runningIf you run that
rspec
command in a project with no points (like base-rails) it produces something like:This change updates