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

Run tests recursively #61

Closed
nicolaferraro opened this issue Mar 11, 2020 · 0 comments · Fixed by #80
Closed

Run tests recursively #61

nicolaferraro opened this issue Mar 11, 2020 · 0 comments · Fixed by #80

Comments

@nicolaferraro
Copy link
Collaborator

Part of #55, depends on #57

See also #59 and #60

We should add the possibility to run tests recursively in sub-dirs.

A test group can contain the following config:

config:
  recursive: true

When it's enabled (I'm not sure about the default value for it):

  • .feature files present in the dir are still treated as tests belonging to the group and run
  • sub-directories are treated as sub-test-groups to run (i.e. we should run them before or after the standard tests, using their own yaks-config.yaml config file).

Possible usages.

Basic

  • dir1 (recursive)
    • test1.feature
    • dir2
      • test2.feature
      • test3.feature

Execution is: test1, test2, test3 in the current ns (not deleted after run).

SingleTestNS

  • dir1 (recursive, temp-ns)
    • test1.feature
    • dir2
      • test2.feature
      • test3.feature

Execution is: test1, test2, test3 in a temporary namespace, deleted after run

MultipleTestNS

  • dir1 (recursive, temp-ns)
    • test1.feature
    • dir2 (temp-ns)
      • test2.feature
      • test3.feature
    • dir3
      • test4.feature

Execution is:

  • test1 in tempns1
  • test2, test3 in tempns2
  • test4 in tempns1 (same as test1)

Both temp ns deleted after run.

christophd added a commit to christophd/yaks that referenced this issue Apr 6, 2020
- Add recursive option to run configuration (default=true)
- Include tests in subdirectories when recursive is enabled
- Make sure to always apply yaks-config.yaml in each directory
- Apply yaks-config.yaml also when single test is executed
- Add examples to verify test group execution
- Fix error handling on test execution
christophd added a commit that referenced this issue Apr 6, 2020
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

Successfully merging a pull request may close this issue.

1 participant