Skip to content

The upstream master branch is failing unit tests #132

@Karim-C

Description

@Karim-C

The most recent pull requests which were merged in don't pass the unit tests.

To reproduce this issue:

  1. Pull the latest upstream changes
  2. In the QualOpt_SE701 folder run .\mvnw clean test to run the unit tests

The output will look like this:

Tests run: 193, Failures: 0, Errors: 180, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:23 min
[INFO] Finished at: 2018-03-25T13:06:09+13:00
[INFO] Final Memory: 44M/480M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project qual-opt: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\KBM28\git-testing\QualOpt_SE701\target\surefire-reports for the individual test results.
[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

The following warning and exception that was in the output seems to be the casue of the issue:

2018-03-25 13:22:27.040  WARN 9472 --- [           main] o.s.w.c.s.GenericWebApplicationContext   : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
2018-03-25 13:22:27.101 ERROR 9472 --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory

@softeng-701 Estimating the size of this issue is difficult because the majority of the effort fixing this issue will likely be identifying the root cause of the issue. I think the problem is likely stemming from a small error in the code, so I believe this issue should be labelled very-small.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions