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

Add hook to manipulate test order as an alternative to test-ns-hook #322

Closed
alysbrooks opened this issue Oct 18, 2022 · 1 comment
Closed
Labels
closed: pr welcome Closed because we have decided not to prioritize it but PRs are still welcome feature New functionality

Comments

@alysbrooks
Copy link
Member

alysbrooks commented Oct 18, 2022

In #29, @ devurandom suggested a more Kaocha-friendly alternative to test-ns-hook:

Could this also be achieved through a hook that receives the deftest symbols in the namespace and returns them in a different order (i.e. in the order the test author needs because of dependencies between tests)? That would feel a little bit like Pedestal Interceptors can see and manipulate the chain of interceptors that will be executed to handle an HTTP request.

My reply with more ideas:

@devurandom Interesting idea. That would certainly fit our "data pipeline" architecture. It would also be quite flexible. For example, you could even do things like enforce a rough ordering. Or you could always make sure test A always runs sometime before test B but not care about the order otherwise. Or you could always run certain important tests first.

@alysbrooks alysbrooks added the closed: pr welcome Closed because we have decided not to prioritize it but PRs are still welcome label Jul 3, 2023
@alysbrooks
Copy link
Member Author

I don't think this is an immediate priority, but we would definitely welcome a PR adding this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: pr welcome Closed because we have decided not to prioritize it but PRs are still welcome feature New functionality
Projects
Status: 🙈Out of Scope
Development

No branches or pull requests

1 participant