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

Describe and it texts should be displayed if test fails #129

Open
Kiemes opened this issue Jan 5, 2018 · 0 comments
Open

Describe and it texts should be displayed if test fails #129

Kiemes opened this issue Jan 5, 2018 · 0 comments

Comments

@Kiemes
Copy link

Kiemes commented Jan 5, 2018

Coming from Ruby and RSpec, I am used to see the texts from describe and it blocks in the error message when the test fails.

I would assume something similar to this example:

describe("Spectrum", () -> {
        it("can make assertions", () -> {
            assertThat(true, is(false));
        });
});

Output might look like

Test failed: Spectrum, it can make assertions (/thisIs/A/PathTo/MyTestFile:15)
Expected: is <false>
     but: was <true>

with "/thisIs/A/PathTo/MyTestFile:15" indicating the line in which the it block starts.

wdyt?

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

1 participant