Skip to content

Flat test list #4

@trans

Description

@trans

Currently the DSL collects tests into a tree hierarchy of suite -> case -> unit, and eventually may become suite -> case -> unit -> test (see layer issue). A more elegant solution may be to have a flat list, such that each test object has everything it needs to run on it's own, and a group field to track how it's is group together with other tests. I think this would greatly simplify the underlying code base.

The test object would be constructed something like:

Test.new(
  :module =>
  :method =>
  :singleton =>
  :description =>
  :setup =>
  :teardown =>
  :groups => [ ... ],
  &procedure
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions