Skip to content

Figure out how to make the AppInfo test not fail if in wrong test phase #51

Description

@jetmore

The AppInfo_IntegrationTest requires build artifacts that are created by a maven plugin, so it often fails if run from inside eclipse and the properties happen not to exist. Could we do something like

  • implement a new test phase that only runs after properties are built/copied
  • add a check in the test to see what phase we're running in (that seems like the impossible one). Or maybe mvn could set an environment variable and we only run in mvn?
  • If we don't think we're running in the correct phase, just skip the test (see https://www.baeldung.com/junit-conditional-assume, assumeThat)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions