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

Flat test list #4

Open
trans opened this issue Oct 26, 2010 · 0 comments
Open

Flat test list #4

trans opened this issue Oct 26, 2010 · 0 comments

Comments

@trans
Copy link
Member

trans commented Oct 26, 2010

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
)
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