Skip to content

Tests sometimes fail with AppLogWrapper conflicts  #18886

Open
@mkevins

Description

@mkevins

Expected behavior

Tests should not fail (or if they have errors unrelated with AppLogWrapper, those errors should be reported instead).

Actual behavior

Occasionally, the tests will fail to build with the following error:

Cannot access class 'org.wordpress.android.fluxc.utils.AppLogWrapper'. Check your module classpath for missing or conflicting dependencies

Steps to reproduce the behavior

It is not clear if this will reliably reproduce the issue, but it has been observed following these steps:

  1. Introduce a compile error in a test file
  2. Try to build / run the test implementation
  3. 💥 The above error is reported instead

Note: in case this occurs, even after fixing the underlying error, the above error will still be reported until a clean / build is performed.

Until this is properly resolved, the work-around for now is to clean and rebuilt after resolving the other errors.

To properly fix this, it is probably best to resolve the circular dependencies between WordPress-Android and WordPress-FluxC-Android (specifically in the test implementation, and regarding our usages of AppLog and AppLogWrapper classes).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions