Code Monkey home page Code Monkey logo

footie-dashboard's Introduction

Review Assignment Due Date

COM1003 Assignment: A Footie Dashboard

This is the source code of the COM1003 SEM 2 Assignment (2022-23).

Checking that your project compiles

To compile and execute the tests provided in the project, execute:

gradle build

or

./gradlew build

If you execute either of these commands as soon as you clone your repository, you should get this output:

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :test FAILED

TestFileParsing > testParseFileLine() FAILED
    java.lang.NullPointerException at TestFileParsing.java:24

TestFileParsing > testParseFileLineTooFewColumns() FAILED
    org.opentest4j.AssertionFailedError at TestFileParsing.java:36

TestPlayerCatalog > testGetMeanAverageValue() FAILED
    org.opentest4j.AssertionFailedError at TestPlayerCatalog.java:52

TestPlayerCatalog > testUpdateCatalog() FAILED
    org.opentest4j.AssertionFailedError at TestPlayerCatalog.java:25

TestQueryParser > testReadSingleQuery() FAILED
    org.opentest4j.AssertionFailedError at TestQueryParser.java:18

TestQueryParser > testExceptionOnBadQuery() FAILED
    org.opentest4j.AssertionFailedError at TestQueryParser.java:26

TestRadarChart > testUpdateRadarChartSameData() FAILED
    java.lang.NullPointerException at TestRadarChart.java:41

TestRadarChart > testUpdateRadarChart() FAILED
    java.lang.NullPointerException at TestRadarChart.java:28

8 tests completed, 8 failed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/jmr/systems/COM1003/com1003_footie/build/reports/tests/test/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
8 actionable tasks: 8 executed

As you can see, the provided JUnit tests fail. By the time you finish implementing your solution, all these tests should pass and the build should be successful.

You can use the -x test option to ask Gradle to compile your project and skip test execution:

gradle build -x test

Which should output:

BUILD SUCCESSFUL in 625ms
6 actionable tasks: 6 executed

Do not use javac to compile

Using javac directly to compile individual Java files will not work, e.g., executing:

javac FootieDashboard.java

will output:

error: file not found: FootieDashboard.java
Usage: javac <options> <source files>

and executing:

javac src/main/java/uk/ac/sheffield/com1003/assignment/FootieDashboard.java

will lead to a number of missing dependency errors, e.g.:

src/main/java/uk/ac/sheffield/com1003/assignment/FootieDashboard.java:8: error: package uk.ac.sheffield.com1003.assignment.codeprovided.gui does not exist
import uk.ac.sheffield.com1003.assignment.codeprovided.gui.AbstractPlayerDashboardPanel;

src/main/java/uk/ac/sheffield/com1003/assignment/FootieDashboard.java:24: error: cannot find symbol
        private final AbstractPlayerCatalog playerCatalog;
                      ^
  symbol:   class AbstractPlayerCatalog
  location: class FootieDashboard

Submission

Your submission will consist of your repository at a link to the commit containing your solution, which you will include in the text field on Blackboard assignment submission page. The format of the link should be as follows:

https://github.com/tuos-dcs-COM1003/com1003_footie-<YOUR_GITHUB_USERNAME>/commit/131337e0893b6a47dd4646815cc16794077b3e34

How can I find out the link to my commit for submission?

On Github.com, you can extract the url by navigating to <YOUR_GITHUB_REPO_URL>/commits/main and clicking on the View commit details option.

Alternatively, if you are on Linux or Mac OS, the following one-liner should produce an URL for your latest commit:

echo "$(git config --get remote.origin.url | sed -e 's/\.git$//g')/commit/$(git rev-parse HEAD)"

For Windows users, you can compose the url by hand by concatenating:

<YOUR_GITHUB_REPO_URL>/commit/<LATEST_COMMIT_ID>

where <LATEST_COMMIT_ID> can be extracted from your project repo log by executing:

git --no-pager log --decorate=short --pretty=medium

footie-dashboard's People

Contributors

alidantech avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.