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

writer: allow new items to be appended to existing line #30

Closed
plastikfan opened this issue Dec 26, 2020 · 1 comment
Closed

writer: allow new items to be appended to existing line #30

plastikfan opened this issue Dec 26, 2020 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@plastikfan
Copy link
Collaborator

No description provided.

@plastikfan plastikfan added the feature New feature or request label Dec 26, 2020
@plastikfan plastikfan self-assigned this Dec 26, 2020
@plastikfan
Copy link
Collaborator Author

As a result of this issue, some lessons have been learnt with regards to classes definied in modules. To test, the Pester fixture must be InModuleScope. This is because of the limiting use of using module , which because it has to be at the top of a file, always depends on the installed version of the module, not the module being tested.

In the context of a test fixture, having:

using module Elizium.Krayola

at the top of the file, just uses the installed version not the tested version. So if we removed the installed version, that using statement will fail. This means we can't use the using statement in our test.

The way to fix this is to re-write the tests so that everything is running InModuleScope, which means any class defined can be referenced directly.

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

No branches or pull requests

1 participant