I am using emacs for clojure development.
So after using: C-u M-x cider-jack-in (in my test file). Followed by lein repl followed by M-x cider-connect I get a strange, partially working repl at the root of my project where I have to provide the fully qualified path of every function complete with its namespace.
How can I provide cider a custom entry point (e.g. a test file)? How can I preload parts of the namespace, or halt execution at a specific point in the program?

you can change your repl namespace by entering
(in-ns 'some.namespace)in repl. Or otherwise cider allows you to switch to open file's namespace: open the file in emacs and executecider-repl-set-ns(orC-c M-n).To load the whole file into the repl use
cider-load-buffer(C-c C-k), orcider-load-file(C-c C-l), and to load single s-expression usecider-eval-last-sexp(placing the cursor after sexp you want to exec and C-x C-e) orcider-eval-sexp-at-point.