-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
how to add pester result using Add-MdbcData? #14
Comments
https://stackoverflow.com/questions/40495248/powershell-hashtable-from-json resolved my problem, thanks |
I am glad you found a way to do this. But I am still interested in the details. Why did not it work exactly? In theory, Mdbc should convert PSObject's to BSON itself. |
$result is returned from Pester, but $result|add-mdbcdata failed, let me know if need more info, thanks PS C:\WINDOWS\system32> $result TagFilter : {} PS C:\WINDOWS\system32> $result|Add-MdbcData
PS C:\WINDOWS\system32> |
That is the reason. No, I do not need more info. All looks fine, by design, because not everything can be automatically converted to BSON. |
Hi Guru,
I want to save my test result using Pester to MongoDB,
looks like Add-MdbcData only accepts a dictionary, but test result using Pester something like 2-level PSCustomerOBject objects, how should I convert it to use Add-MdbcData?
thanks
The text was updated successfully, but these errors were encountered: