Skip to content

Test execution order #217

@antonio-gg-dev

Description

@antonio-gg-dev

Summary

Test functions within a test file are executed (or at least their results are printed) alphabetically, regardless of the order in which you define them.

For me, it would make more sense for these to be executed in the order they are defined. For example, if you are doing TDD with the stop on failure option active, and you are adding tests one after another, it may be that if your last test fails (which is very common in TDD), it could be hiding the fact that you broke one of the tests you had already developed.

Current behavior

Test functions are executed (or at least their results are printed) alphabetically.

How to reproduce

This can be seen by creating a test file in which the test functions are not arranged alphabetically.

Expected behavior

Test functions should be executed and printed in the order they are defined within the test file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions