GatorEducator / gatorgradle

:electric_plug: Gradle Plugin to Enable Running GatorGrader as a Gradle Task
https://gatoreducator.github.io/gatorgradle/
GNU General Public License v2.0
7 stars 7 forks source link

Feature/task gradle report #63

Closed enpuyou closed 4 years ago

enpuyou commented 4 years ago

A currently WIP PR. Contains code to add a new task gradle report that will grade and upload results in addition to the existing gradle grade task.

Michionlion commented 4 years ago

If you're okay with it, I think this is ready to merge into feature/upload-results and do any final testing and fixing there -- feel free to do that merge yourself!

enpuyou commented 4 years ago

Output of gradle report in my local test. I have also manually checked the aws side and it was also successfully uploaded

 $ gradle report

> Configure project :
Configured GatorGradle 0.5.0

> Task :grade
Updating GatorGrader...
Fetching origin
Checking out to 'master'
Pulling branch...
Updated!
Managing GatorGrader's Python dependencies...
Finished!

✔  The DisplayOutput.java in src/main/java/labone has exactly 1 of the 'new Date()' fragment
✔  The DisplayOutput.java in src/main/java/labone has exactly 1 of the 'import java.util.Date' fragment
✔  The DisplayOutput.java in src/main/java/labone has exactly 0 of the 'TODO' fragment
✔  The file reflection.md exists in the writing directory
✔  The file DisplayOutput.java exists in the src/main/java/labone directory
✔  The DisplayOutput.java in src/main/java/labone has at least 2 single-line Java comment(s)
✔  The reflection.md in writing has exactly 3 of the 'code' tag
✔  The DisplayOutput.java in src/main/java/labone has exactly 0 of the 'Add Your Name Here' fragment
✔  The command output has exactly 1 match(es) of the 'Hello\\s+\\w+\\.(\\n)Gradle(\\s+\\w+)*\\.(\\n)Docker(\\s+\\w+)*\\.' regular expression
✔  The command 'gradle -q --console plain run' executes correctly
✔  The reflection.md in writing has exactly 6 of the 'heading' tag
✔  The DisplayOutput.java in src/main/java/labone has exactly 1 match(es) of the 'println\\((.)*\\)' regular expression
✔  The command 'gradle build' executes correctly
✔  The reflection.md in writing has at least 300 word(s) in total
✔  The command output has exactly 4 lines
✔  The reflection.md in writing has exactly 0 of the 'Add Your Name Here' fragment
✔  The repository has at least 10 commit(s)complete!
✔  The DisplayOutput.java in src/main/java/labone has at least 2 multiple-line Java comment(s)
✔  The reflection.md in writing has exactly 1 of the 'list' tag
✔  The reflection.md in writing has exactly 1 of the 'code_block' tag

        ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
        ┃ Passed 20/20 (100%) of checks for java-assignment-solution-100-01! ┃
        ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

> Task :report
Upload successfully