diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-04-03 22:06:18 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-10 18:03:22 +0100 |
commit | 545c03ac4981737594d7638b7a925d1881a74cdc (patch) | |
tree | 15b6173c9ce1cc64d67d9bc1f90cd7301c2e7442 /Scala/funsets/project/Settings.scala | |
parent | f885b79568a221f9d1cf8edc612f69bec5aad1cc (diff) | |
download | coursera-545c03ac4981737594d7638b7a925d1881a74cdc.zip coursera-545c03ac4981737594d7638b7a925d1881a74cdc.tar.gz |
Scala : add funset
Diffstat (limited to 'Scala/funsets/project/Settings.scala')
-rw-r--r-- | Scala/funsets/project/Settings.scala | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Scala/funsets/project/Settings.scala b/Scala/funsets/project/Settings.scala new file mode 100644 index 0000000..c8de201 --- /dev/null +++ b/Scala/funsets/project/Settings.scala @@ -0,0 +1,48 @@ +object Settings { + // when changing this, also look at 'scripts/gradingImpl' and the files in s3/settings + // val courseId = "progfun-2012-001" + + def challengeUrl(courseId: String) = "https://class.coursera.org/"+ courseId +"/assignment/challenge" + + def submitUrl(courseId: String) = "https://class.coursera.org/"+ courseId +"/assignment/submit" + + // def forumUrl(courseId: String) = "https://class.coursera.org/"+ courseId +"/forum/index" + + // def submitQueueUrl(courseId: String) = "https://class.coursera.org/"+ courseId +"/assignment/api/pending_submission" + + def uploadFeedbackUrl(courseId: String) = "https://class.coursera.org/"+ courseId +"/assignment/api/score" + + val maxSubmitFileSize = { + val mb = 1024 * 1024 + 10 * mb + } + + val submissionDirName = "submission" + + val testResultsFileName = "scalaTestLog.txt" + val policyFileName = "allowAllPolicy" + val submissionJsonFileName = "submission.json" + val submissionJarFileName = "submittedSrc.jar" + + // time in seconds that we give scalatest for running + val scalaTestTimeout = 240 + val individualTestTimeout = 30 + + // default weight of each test in a GradingSuite, in case no weight is given + val scalaTestDefaultWeigth = 10 + + // when students leave print statements in their code, they end up in the output of the + // system process running ScalaTest (ScalaTestRunner.scala); we need some limits. + val maxOutputLines = 10*1000 + val maxOutputLineLength = 1000 + + val scalaTestReportFileProperty = "scalatest.reportFile" + val scalaTestIndividualTestTimeoutProperty = "scalatest.individualTestTimeout" + val scalaTestReadableFilesProperty = "scalatest.readableFiles" + val scalaTestDefaultWeigthProperty = "scalatest.defaultWeight" + + // debugging / developping options + + // don't decode json and unpack the submission sources, don't upload feedback + val offlineMode = false +} |