Skip to content

[New arch] Modularization tests (adapt existing, and create new ones) + FileDataStorageManager refactor #2701

Closed

Description

@jesmrec

Tasks:

  • Fix already existing tests: unit and UI. Use corresponding share models in TestUtils.
    • Data layer
      • Datasources
      • Repositories
        • Test getStoredCapabilities within OCCapabilityRepositoryTest
      • Mappers (model-entities, model-remote)
      • Entity
      • DAOs
        • Missing: test getCapabilitiesForAccount within OCCapabilityDaoTest
    • Domain layer
      • Model
      • Usecases
        • Missing: test GetStoredCapabilitiesUseCase.kt
    • Presentation layer
      • ViewModel Tests
      • Sharing Fragment Tests
  • New tests for usecases
  • New tests for models
  • Use StandAloneContext.loadKoinModules. See [New arch] Private shares: edition and deletion #2603 (comment)
  • Prepare Bitrise to execute tests from different modules.

Tests to fix @abelgardep :

  • createPrivateShareWithNotValidShareTypeException within CreatePrivateShareAsyncUseCaseTest.kt
  • testEqualsKo within OCCapabilityTest.kt
  • Viewmodel tests

PRs:

Activity

  1. added this to the 2.14.0 milestone on Nov 5, 2019
  2. changed the title [-][FEATURE REQUEST] Modularization tests (adapt existing, and create new ones)[/-] [+][New arch] Modularization tests (adapt existing, and create new ones)[/+] on Nov 5, 2019
  3. changed the title [-][New arch] Modularization tests (adapt existing, and create new ones)[/-] [+][New arch] Modularization tests (adapt existing, and create new ones) + FileDataStorageManager refactor[/+] on Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions