Skip to content

[Feature request] Report todos as a separate category #61

@richardcocks

Description

@richardcocks

As a Test Driven Developer
I'd like to see failures due to todo reported differently
So that I can see my progress from todo to passing and more easily see if I've caused regressions or "proper" failures

Motivation:

If I have a library, I can scaffold the interface with todo in the implementation, and then write tests against the library in a todo state.

As I implement functions, it can be hard to see "legitimate" failures in the noise of failures due to todo.

I'd like any failure due to a todo reported separately, to aid test driven development.

I have an apparently working version in my fork, but I don't completely trust it yet, the core of my logic is:

  case gleam_panic.from_dynamic(error) {
    Ok(gleam_panic.GleamPanic(kind: gleam_panic.Todo, ..) as e) -> {
      let src = option.from_result(read_file(e.file))
      let message = format_gleam_error(e, module, function, src)
      io.print("\n" <> message)
      State(..state, todos: state.todos + 1)
    }

with State(passed: Int, failed: Int, skipped: Int, todos: Int) to track todo count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions