-
Notifications
You must be signed in to change notification settings - Fork 31
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
Failure report is not available in HTML when focusing on a child scenario #528
Comments
While looking at this, I had a question. I'm not sure if it is a compiler bug or the correct behavior. (It is not a bug in PR #529.) I took a quick look for an existing issue but didn't find one. The question is whether <x:scenario label="focused scenario" focus="x">
<x:call function="true"/>
<x:expect label="should execute assertion" select="true()"/>
<x:pending label="hide pending expect">
<x:expect label="UNLESS it is inside x:pending?" select="false()"/>
</x:pending>
</x:scenario> |
Good point. I couldn't find an authoritative answer to it. The behavior seems to have changed at 3366f94 with no tests/details provided. |
I don't feel that strongly about this, but I tend to agree with your opinion. If I'm trying to write a set of tests first and then code the functionality, then pending status might prevent a hard error that would otherwise occur before the functionality has been coded. I can always choose not to use On the other hand:
|
Filed #575.
Agreed. I think we need the test, whatever the current behavior is.
Good point. Unfortunately so far I don't know if the other BDD flavors have a similar built-in facility. |
In Jasmine (a BDD framework for JavaScript) focused tests always take precedence over unfocused tests. I am not sure about other testing frameworks though. In general, I would expect the focus tests to be honoured so I would suggest to implement this behaviour. It would be good to test the current behaviour though. |
(Note
@focus
in the Scenario 1-2.)When you run this scenario, the focused Scenario 1-2 fails as expected.
In the report HTML, however, the entire Scenario 1 is collapsed. You can't see the failure report of its child Scenario 1-2.
Same on XSpec v0.3.
The text was updated successfully, but these errors were encountered: