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

Execute all tests found within the tests directory #26

Open
vhartikainen opened this issue May 30, 2018 · 3 comments
Open

Execute all tests found within the tests directory #26

vhartikainen opened this issue May 30, 2018 · 3 comments

Comments

@vhartikainen
Copy link

It would be helpful to provide just the tests directory on command line. Then the tool would iterate over all tests it finds and runs the tests.

e.g.

scripts
+- scripts1
     +- script1.tick
+- scripts2
     +- script2.tick
tests
+- test1.yaml
+- test2.yaml

And running:
kapacitor-unit --dir scripts --tests tests/

The tool would then execute all tests it finds from the directory

@gpestana
Copy link
Owner

gpestana commented Jun 4, 2018

Yep, this sounds like a good improvement! Would you push the ball forward @vhartikainen ? 😃

The cli already parses all the tick scripts in a directory when input in --dir script. Maybe that code can be reused?

@vhartikainen
Copy link
Author

A big maybe from me 😏 Never written a single line of Go, but I'm willing to give it a go.

No promises on estimate when to be finished though 😄

@vlaurenzano
Copy link
Contributor

Pr #33 accomplishes this. It checks the --tests config to see if it's a dir or a yaml file before parsing so it's backwards compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants