Bahn-X / swift-composable-navigator

An open source library for building deep-linkable SwiftUI applications with composition, testing and ergonomics in mind
MIT License
580 stars 25 forks source link

Navigator tests #40

Closed ohitsdaniel closed 3 years ago

ohitsdaniel commented 3 years ago

Steps towards resolving #37.

Problem

The Navigator struct wasn't tested.

Solution

  1. Wrap the Navigator.Datasource in tests in a Navigator. That way, we make sure that Navigator actually calls through to the underlying datasource.
  2. Add tests for Navigator+Debug.
github-actions[bot] commented 3 years ago

Current coverage for ComposableDeeplinking.framework is 100.00%

No files affecting coverage found


Current coverage for ComposableNavigator.framework is 79.96%

Files changed - -
NavigatorDatasource.swift 92.59% :white_check_mark:
Navigator+Debug.swift 99.32% :white_check_mark:
Navigator.swift 100.00% :white_check_mark:

Current coverage for ComposableNavigatorTCA.framework is 96.55%

No files affecting coverage found


Powered by xcov

Generated by :no_entry_sign: Danger