You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get ImportProjectTaskTest closer to real life (Case 205891) (#59)
Until now, the test tests almost nothing:
It doesn't verify results and acts rather as a smoke test. But it also
mocks away all the dependencies, and only tests the few lines of the
`import` method against empty mocks rather than real services.
This commit shows that it is possible to test way more real-life
interaction with even less code. Only PackageVersionFetcher and
VcsDriverFactory are mocked now, to prevent real network requests.
For more test result verification, we should use a tool like Foundry.
0 commit comments