-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Jasmine 2] Results of assertions are not getting added in protractor json output file #2051
Comments
We have many tests that use jasmine2 and resultJsonOutputFile, so this is nota general issue. I'm not familiar with the If you can create a reproducible example that shows your problem, please feel free to open up a new issue. Otherwise, I'm closing as not reproducible. |
Hi Julie Ralph, The issue was with assertions for only passed test cases. failed cases are perfectly fine. Before adding Jasmine2 as framework in config, i used to get assertions results for passed ones too. eg: below
But after adding framework: jasmine2, the resultjsonoutput looks like this.
Only changes I have added is framework change in config. So I am confused with output now. |
That's true, there is an inconsistency here. Jasmine2 has a different system for what gets passed to reporters, so the output has changed slightly. I'll make an update, but is there any reason this is a problem? No assertions means everything passes. |
Thanks @juliemr for the quick fix. I had written an custom reporter for my test executions that relies on assertions. I have considered no assertions as invalid test cases. So i need to have assertion results in the result output. |
Hi,
I am using "resultJsonOutputFile" to write my test results in json format. Recently i have migrated to Jasmine2.0, but after that, assertions results are always empty in the json output.
eg below:
[
{
"description": "my_test",
"assertions": [],
"duration": 6811
}
]
I have tried upgrading jasmine-expect 2.0.0-beta1 , but still getting same result.
The text was updated successfully, but these errors were encountered: