CS18 TAs Spring 2021
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: Documents --- # Gradescope Submission Guide We will be using Gradescope to manage and grade your assignments. All homeworks and projects will be submitted through Gradescope. ## Logistics - The gradescope code for the course is `RWR4Z5`. - In order to preserve your anonymity during grading, we ask that you change your "Full Name" to your Banner ID. On the bottom left of the Gradescope screen, go to Account->Edit Account, and change your "Full Name" field to your Banner ID: ![](https://i.imgur.com/Gnl1Jyx.png) * If you can't do this due to other classes requiring your name, we can change your name for this class specifically, so don't worry! ## Homework Handins ### Grading Your solution implementation and test suite are autograded. See the [course syllabus](https://hackmd.io/@cs18-spring-2021/syllabus-summer#5-Grading) for information on how we are grading you this semester. ### Implementation Each homework has two corresponding assignments on Gradescope. You should turn in your solution code to the **Homework N: Implementation** assignment. This assignment is for grading your solution code. Submitting to this assignment will run our test suite against your code. If your code works with our test suite (that is, it doesn't crash our test suite), you will see this output: ![](https://i.imgur.com/kT5uJx6.png) If you don't see this, here are a few common ways that your code might break our test suite, and how to fix them: - If you have different class and/or method names than those that we specify in the handout, our test suite won't know where to look for those classes and methods. Please double check your class and method names against the class and method names that we specify in the handout for the assignment. - If your solution code does not have `package sol;` at the top, and instead has a different package name (for example, `package homework1;`), our test suite will not be able to find your code. Please double check that all of your solution code is in a directory named `sol` and has `package sol;` at the top of each file. - **Note:** This does not apply to code that we provide to you in the `src` folder of some assignments. That code should have `package src;` and should not be modified in any way. ### Testing The other assignment in Gradescope is the **Homework N: Testing** assignment. The only code that you need to submit to this assignment is your `HomeworkNTestSuite.java` file (or `.py`, in later homeworks). This assignment is for grading your test coverage. We grade your test coverage by running your test suite against a series of [wheat and chaff](https://drive.google.com/uc?export=view&id=1Rr6jxELllMUV9dJKGTWmadtfOVKm6U-N#page=6) solutions. - The wheat solution is the TA solution to the assignment. When we run your Wheat solution against your test suite, we are checking that your test suite does not produce any failed tests. That is, your test suite should accept the wheat solution as a valid solution to the problem. - The chaff solutions are "bad" solutions that we wrote for the problems. These solutions have mistakes that you should be able to catch with good test coverage. When we run the chaff solutions against your test suite, we expect that your test suite has at least one failed test. That is, your test suite should **not** accept the chaff solutions. Some questions that we expect: - **My test suite doesn't pass the wheat. How do I know how to fix it?** - If your test suite does not pass the wheat solution, Gradescope will tell you which of your tests failed, and what the output of the wheat solution was when you ran that test. **We recommend that you use the wheat solution to check your understanding of the assignment!** A good way to start an assignment is to write a test suite for the methods described in the assignment, submit it to the Testing assignment, and see if it passes the wheat. If it does, then you understand the expected output of the solution that we want you to write! - **If I pass the wheat, then why do I need to pass the chaffs? Isn't my test suite good enough?** - Here's an example of a bad test suite that passes on the wheat solution but will fail to catch any of the chaffs: ```java= package sol; import tester.Tester; public class Homework1TestSuite { public void testReallyGoodTest(Tester t) { // always true t.checkExpect(1, 1); } public static void main(String[] args) { Tester.run(new Homework1TestSuite()); } } ``` - **Ok, what if I just submit a test suite that fails everything? Won't that catch all of the chaffs?** - It would, but we do not run any of the chaffs against your test suite until your test suite passes the wheat solution. In this case, your test suite that fails everything wouldn't pass the wheat solution, and so you wouldn't get points for catching chaffs. - **How does this grade my test suite?** - Each chaff is meant to catch a specific type of test or collection of tests. For example, there is a chaff in Homework 1 that does not throw a `RuntimeException` when a `Student` tries to register for a course while they are taking a course. Having a test to check for this case will catch this chaff. The chaffs are there to see if you are testing for edge cases, general cases, and exceptions. - **How is this graded? Do I have to catch all of the chaffs?** - You do not need to catch all of the chaffs. As a general rule, we expect you to catch more and more chaffs as the semester progresses and you get better at testing, but we don't have a hard cutoff. --- *Please let us know if you find any mistakes, inconsistencies, or confusing language in this or any other CS18 document by filling out the (mostly) [anonymous feedback form](https://cs.brown.edu/courses/cs018/feedback)!*

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully