fix: Fix #42, add setup steps to README file (#82)

Build failed

* fix: Fix #42, add setup steps to README file

* fix: Update setup README

* Update README.md

* Update README.md

00:17, 13 February 2023

41cfb3271b3dd616979b1b504d8709f7e7882572

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------< com.group1:ci-server >------------------------

[INFO] Building ci-server 0

[INFO] --------------------------------[ jar ]---------------------------------

[INFO]

[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ ci-server ---

[INFO] Deleting /Users/Erik/Desktop/Programmering/DD2480-CI/ci-server/watched-repository/ci-server/target

[INFO]

[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ ci-server ---

[INFO] Using UTF-8 encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/Erik/Desktop/Programmering/DD2480-CI/ci-server/watched-repository/ci-server/src/main/resources

[INFO]

[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ ci-server ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 7 source files to /Users/Erik/Desktop/Programmering/DD2480-CI/ci-server/watched-repository/ci-server/target/classes

[INFO]

[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ ci-server ---

[INFO] Using UTF-8 encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/Erik/Desktop/Programmering/DD2480-CI/ci-server/watched-repository/ci-server/src/test/resources

[INFO]

[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ ci-server ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 3 source files to /Users/Erik/Desktop/Programmering/DD2480-CI/ci-server/watched-repository/ci-server/target/test-classes

[INFO]

[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ ci-server ---

[INFO]

[INFO] -------------------------------------------------------

[INFO] T E S T S

[INFO] -------------------------------------------------------

[INFO] Running com.group1.ContinuousIntegrationServerTest

running tests

[ERROR] Tests run: 10, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 16.965 s <<< FAILURE! - in com.group1.ContinuousIntegrationServerTest

[ERROR] output_from_compileAndRunTests_is_written_to_file(com.group1.ContinuousIntegrationServerTest) Time elapsed: 8.24 s <<< FAILURE!

java.lang.AssertionError

at com.group1.ContinuousIntegrationServerTest.output_from_compileAndRunTests_is_written_to_file(ContinuousIntegrationServerTest.java:91)

[ERROR] appendCommit_throws_exception_for_json_file_without_top_level_commit_attribute(com.group1.ContinuousIntegrationServerTest) Time elapsed: 0.001 s <<< ERROR!

java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.io.FileNotFoundException>

at com.group1.ContinuousIntegrationServerTest.appendCommit_throws_exception_for_json_file_without_top_level_commit_attribute(ContinuousIntegrationServerTest.java:157)

[ERROR] compileAndRunTests_creates_directory_called_target_for_well_formed_maven_project(com.group1.ContinuousIntegrationServerTest) Time elapsed: 0 s <<< ERROR!

java.lang.IllegalArgumentException: targetDirectory is not a maven directory

at com.group1.ContinuousIntegrationServerTest.compileAndRunTests_creates_directory_called_target_for_well_formed_maven_project(ContinuousIntegrationServerTest.java:102)

[INFO] Running com.group1.RequestExtractionTest

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.872 s <<< FAILURE! - in com.group1.RequestExtractionTest

[ERROR] getRepositoryUrlFromRequestTest(com.group1.RequestExtractionTest) Time elapsed: 2.872 s <<< ERROR!

java.lang.NoClassDefFoundError: com/group1/RequestExtraction

at com.group1.RequestExtractionTest.getRepositoryUrlFromRequestTest(RequestExtractionTest.java:36)

Caused by: java.lang.ClassNotFoundException: com.group1.RequestExtraction

at com.group1.RequestExtractionTest.getRepositoryUrlFromRequestTest(RequestExtractionTest.java:36)

[INFO] Running com.group1.Output_parserTest

[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.006 s <<< FAILURE! - in com.group1.Output_parserTest

[ERROR] compileFail(com.group1.Output_parserTest) Time elapsed: 0 s <<< ERROR!

java.lang.NoClassDefFoundError: com/group1/Output_parser

at com.group1.Output_parserTest.compileFail(Output_parserTest.java:18)

Caused by: java.lang.ClassNotFoundException: com.group1.Output_parser

at com.group1.Output_parserTest.compileFail(Output_parserTest.java:18)

[ERROR] testFail(com.group1.Output_parserTest) Time elapsed: 0 s <<< ERROR!

java.lang.NoClassDefFoundError: com/group1/Output_parser

at com.group1.Output_parserTest.testFail(Output_parserTest.java:25)

Caused by: java.lang.ClassNotFoundException: com.group1.Output_parser

at com.group1.Output_parserTest.testFail(Output_parserTest.java:25)

[ERROR] falseConclusion(com.group1.Output_parserTest) Time elapsed: 0 s <<< ERROR!

java.lang.NoClassDefFoundError: com/group1/Output_parser

at com.group1.Output_parserTest.falseConclusion(Output_parserTest.java:46)

Caused by: java.lang.ClassNotFoundException: com.group1.Output_parser

at com.group1.Output_parserTest.falseConclusion(Output_parserTest.java:46)

[ERROR] nonexistentFile(com.group1.Output_parserTest) Time elapsed: 0 s <<< ERROR!

java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.NoClassDefFoundError>

at com.group1.Output_parserTest.nonexistentFile(Output_parserTest.java:38)

Caused by: java.lang.ClassNotFoundException: com.group1.Output_parser

at com.group1.Output_parserTest.nonexistentFile(Output_parserTest.java:38)

[ERROR] testSuccess(com.group1.Output_parserTest) Time elapsed: 0.003 s <<< ERROR!

java.lang.NoClassDefFoundError: com/group1/Output_parser

at com.group1.Output_parserTest.testSuccess(Output_parserTest.java:32)

Caused by: java.lang.ClassNotFoundException: com.group1.Output_parser

at com.group1.Output_parserTest.testSuccess(Output_parserTest.java:32)

[INFO]

[INFO] Results:

[INFO]

[ERROR] Failures:

[ERROR] ContinuousIntegrationServerTest.output_from_compileAndRunTests_is_written_to_file:91

[ERROR] Errors:

[ERROR] ContinuousIntegrationServerTest.appendCommit_throws_exception_for_json_file_without_top_level_commit_attribute »

[ERROR] ContinuousIntegrationServerTest.compileAndRunTests_creates_directory_called_target_for_well_formed_maven_project:102 » IllegalArgument

[ERROR] Output_parserTest.compileFail:18 NoClassDefFound com/group1/Output_parser

[ERROR] Output_parserTest.falseConclusion:46 NoClassDefFound com/group1/Output_parser

[ERROR] Output_parserTest.nonexistentFile » Unexpected exception, expected<java.io.IO...

[ERROR] Output_parserTest.testFail:25 NoClassDefFound com/group1/Output_parser

[ERROR] Output_parserTest.testSuccess:32 NoClassDefFound com/group1/Output_parser

[ERROR] RequestExtractionTest.getRepositoryUrlFromRequestTest:36 NoClassDefFound com/g...

[INFO]

[ERROR] Tests run: 16, Failures: 1, Errors: 8, Skipped: 0

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 34.389 s

[INFO] Finished at: 2023-02-13T01:18:01+01:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project ci-server: There are test failures.

[ERROR]

[ERROR] Please refer to /Users/Erik/Desktop/Programmering/DD2480-CI/ci-server/watched-repository/ci-server/target/surefire-reports for the individual test results.

[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException