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

Loading configuration from a path to a json doesn't work #30

Closed
alexsmid opened this issue Sep 9, 2019 · 2 comments
Closed

Loading configuration from a path to a json doesn't work #30

alexsmid opened this issue Sep 9, 2019 · 2 comments

Comments

@alexsmid
Copy link

alexsmid commented Sep 9, 2019

When loading a configuration file, as a path, it will always give the same error:
> Invoke-Testimo -Configuration "C:\Temp\testmio.json" [t][Forest] Loading configuratio failed. Skipping. [Informative] [Not JSON/Hashtable or syntax is incorrect.] [t][Forest] Using configuration provided by user [Informative] [Configuration loaded from ]

This is because in the "Import-TestimoConfiguration" function you reference to "$Object" two times where it should be "$Configuration":

} elseif ($Object -is [string]) { if (Test-Path -LiteralPath $Object) { $Option = 'File' $FileContent = Get-Content -LiteralPath $Configuration }

Should be:

} elseif ($Configuration-is [string]) { if (Test-Path -LiteralPath $Configuration) { $Option = 'File' $FileContent = Get-Content -LiteralPath $Configuration }

PrzemyslawKlys added a commit that referenced this issue Sep 9, 2019
@PrzemyslawKlys
Copy link
Member

PrzemyslawKlys commented Sep 9, 2019

Thank you for noticing. Hope you can make PR's in future improving Testimo :-) I've fixed it now. I was copying/pasting from outside and forgot to change.

@PrzemyslawKlys
Copy link
Member

Published new version. Please test.

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

No branches or pull requests

2 participants