-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat: pluggable test runner #196
Conversation
components/kaocha-test-runner-example/src/polylith/clj/core/kaocha_test_runner_example/core.clj
Outdated
Show resolved
Hide resolved
- extract pluggable test runner impl - extract some common message ops - leave only the responsibility of organizing the high level process
components/clojure-test-test-runner/src/polylith/clj/core/clojure_test_test_runner/core.clj
Show resolved
Hide resolved
components/common/src/polylith/clj/core/common/class_loader.clj
Outdated
Show resolved
Hide resolved
components/workspace-clj/src/polylith/clj/core/workspace_clj/project_settings.clj
Show resolved
Hide resolved
Was unable to reproduce the issue
Thank you for working on this, I've just started porting our 150k line codebase over to polylith and management has been breathing down my neck about code coverage stats 😓 . |
Glad someone else finds this useful :) I haven't yet set up coverage on our end with this, so if you end up with code you can share that would be great! |
@@ -31,14 +30,14 @@ | |||
{:keys [top-namespace interface-ns color-mode]} settings | |||
suffixed-top-ns (common/suffix-ns-with-dot top-namespace) | |||
interfaces (interfaces/calculate components) | |||
interface-names (apply sorted-set (filter identity (mapv :name interfaces))) | |||
interface-names (into (sorted-set) (keep :name) interfaces) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome that you find and improve things like this!
@SavageMessiah in case you use kaocha, I managed to get cloverage working through polylith-kaocha |
Add the option to supply a custom test runner.
A previous version of this PR contained an example implementation using kaocha, I will recreate that outside of this repo and link it.
Todo:
tests-present?
polylith/components/workspace/src/polylith/clj/core/workspace/project.clj
Lines 40 to 50 in e874e80