Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskMockRunner provides no way to assert the results of the task, and cannot find a way to mock modules using MockTestRunner #843

Closed
chayanikaa opened this issue Jun 4, 2022 · 4 comments

Comments

@chayanikaa
Copy link

Environment

azure-pipelines-task-lib version: 3.3.1

Issue Description

I cannot find a way to simultaneously mock a module and also assert the result of a task in my unit test. I would like to mock an external package, and assert the result of the task.

I can assert the result of task using MockTestRunner.stdout/MockTestRunner.succeeded etc, but I cannot mock packages using MockTestRunner.

I can mock packages using TaskMockRunner.registerMock, but cannot assert the results as it does not have an API like MockTestRunner.

Expected behaviour

Is there a way to do both mock external packages and assert results at the same time?

Logs

@max-zaytsev
Copy link
Contributor

@chayanikaa Thanks for your question! We are working on more prioritized issues now but will get back to this one soon.

@github-actions
Copy link

github-actions bot commented Sep 5, 2022

This issue has had no activity in 90 days. Please comment if it is not actually stale

@github-actions
Copy link

This issue has had no activity in 90 days. Please comment if it is not actually stale

@marcopelegrini
Copy link

Can we please take a look at this again? Relates to this issue: #1091

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

No branches or pull requests

3 participants