Liking cljdoc? Tell your friends :D
Mostly clj/s.
Exceptions indicated.

fulcro-spec.suite


def-test-suiteclj/smacro

(def-test-suite suite-name opts selectors)

For use in defining a fulcro-spec test suite. ARGUMENTS:

  • suite-name is the name (symbol) of the test suite function you can call, see each section below for details.
  • opts map containing configuration for the test suite, see each section below for details.
  • selectors contains :available and :default sets of keyword selectors for your tests. See fulcro-spec.selectors for more info.

CLOJURESCRIPT:

  • Make sure you are defining a cljsbuild that emits your client tests to js/test/test.js.
  • You can call the function suite-name repeatedly, it will just re-run the tests.
  • opts should contain : ** :ns-regex that will be used to filter to just your test namespaces.

CLOJURE:

  • Defines a function suite-name that restarts the webserver, presumably with new configuration.
  • Starts a webserver that serves localhost:PORT/fulcro-spec-server-tests.html, (see opts description)
  • opts should contain : ** :test-paths : used to find your test files. ** :source-paths : concatenated with test-paths to create watch and refresh dirs, so that we can scan those directories for changes and refresh those namespaces whenever they change. ** :config : should contain any necessary configuration for the webserver, should just be :port (eg: {:config {:port 8888}})
For use in defining a fulcro-spec test suite.
ARGUMENTS:
* `suite-name` is the name (symbol) of the test suite function you can call, see each section below for details.
* `opts` map containing configuration for the test suite, see each section below for details.
* `selectors` contains `:available` and `:default` sets of keyword selectors for your tests. See `fulcro-spec.selectors` for more info.

CLOJURESCRIPT:
* Make sure you are defining a cljsbuild that emits your client tests to `js/test/test.js`.
* You can call the function `suite-name` repeatedly, it will just re-run the tests.
* `opts` should contain :
** `:ns-regex` that will be used to filter to just your test namespaces.

CLOJURE:
* Defines a function `suite-name` that restarts the webserver, presumably with new configuration.
* Starts a webserver that serves `localhost:PORT/fulcro-spec-server-tests.html`, (see `opts` description)
* `opts` should contain :
** `:test-paths` : used to find your test files.
** `:source-paths` : concatenated with `test-paths` to create watch and refresh dirs, so that we can scan those directories for changes and refresh those namespaces whenever they change.
** `:config` : should contain any necessary configuration for the webserver, should just be `:port` (eg: {:config {:port 8888}})
sourceraw docstring

test-renderercljs

(test-renderer & [opts])

FOR INTERNAL (DEV TIME) UNTANGLED_SPEC USE ONLY

WARNING: You should not need to use this directly, instead you should be starting a server def-test-suite and going to localhost:PORT/fulcro-spec-server-tests.html.

Creates a renderer for server (clojure) tests when using def-test-suite.

FOR INTERNAL (DEV TIME) UNTANGLED_SPEC USE ONLY

WARNING: You should not need to use this directly, instead you should be starting a server `def-test-suite`
and going to `localhost:PORT/fulcro-spec-server-tests.html`.

Creates a renderer for server (clojure) tests when using `def-test-suite`.
sourceraw docstring

test-suite-internalclj/smacro

(test-suite-internal opts selectors)

FOR INTERNAL (DEV TIME) USE ONLY

WARNING: You should not need to use this directly, instead you should be starting a server def-test-suite and going to localhost:PORT/fulcro-spec-server-tests.html.

Creates a webserver for clojure tests, can be start and stop -ed. This is in case you need to refresh your namespaces in your server restarts, however this should only be necessary when developing fulcro-spec itself, as once it's in a jar it can't be refreshed.

FOR INTERNAL (DEV TIME) USE ONLY

WARNING: You should not need to use this directly,
instead you should be starting a server `def-test-suite`
and going to `localhost:PORT/fulcro-spec-server-tests.html`.

Creates a webserver for clojure tests, can be `start` and `stop` -ed.
This is in case you need to refresh your namespaces in your server restarts,
however this should only be necessary when developing fulcro-spec itself,
as once it's in a jar it can't be refreshed.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close