-
Notifications
You must be signed in to change notification settings - Fork 316
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
RFC: Support testing of Habitat plans #1465
Comments
@ksexton and I noted this would be useful for testing things such as:
We noted that This could additionally introduce something like "Test Dependencies" alongside "Build Dependencies" to facilitate the depending on said packages if necessary. These "Test Dependencies" could would not be required during the build or execution steps. |
@smith commented in the Habi-chat:
describe "my-service" do
with_config do |cfg|
cfg.port = 1000
end
it "has the port open" do
expect(cfg.port).to be_listening
end
end |
I like the idea of a do_test() implementation |
Another thing that would be nice to either test by default or have a built-in helper method available to invoke from tests is running This was discussed more heavily in #1470. One comment from that thread was that some packages, like This would make the habitat build process easier to learn since you could get clear errors about common mistakes rather than "not found" errors on a binary that's clearly there down the line, and it would increase the overall quality and reliability of packages |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
CC @eeyun @Hoverbear
Currently Habitat does not support testing that the package created matches what the package author intended. As a package author, I would like to have the ability to ensure that plan updates do not break things that I have specified in my tests.
Some possible ways this could be accomplished:
do_test()
blockhab pkg test
orhab plan test
This could also be useful in a build pipeline. A package could build successfully but not pass the test and be kept from creating the artifact.
The text was updated successfully, but these errors were encountered: