Clojurians
#testing
<
2015-08-20
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

ricardo12:08:07

Is @bensu still around?

ricardo12:08:35

Ah yeah, just saw him on the history. Cool.

ricardo12:08:13

@bensu, got a question for you about doo when you’re around.

ricardo13:08:11

@bensu: Short version… is there a way to indicate to doo that it should do a injectJs before running the tests? I’m using Jayq, so I’d need to inject jQuery.

bensu13:08:56

Hi @ricardo: there should be.

bensu13:08:36

file an issue, and I will handle it there. I've recently added ways of specifying paths for the runners, and what you are asking is similar.

bensu13:08:00

what runner are you using?

ricardo13:08:06

phantomjs. Will do.

ricardo13:08:47

I was about to ask if that “should be” was “should be here some where” or “I should add that”. :simple_smile:

bensu13:08:11

I'm sorry. I should add that. cemerick.test lets you add files to the command directly. When using :none and other runners like karma that is non trivial, but we should be able to handle it anyway.

bensu13:08:41

Thanks! Over the weekend I'll be tuning doo to improve karma support, and probably this as well.

ricardo13:08:26

@bensu: Not sure I understand the issue question. Add that <script src="path/to/jquery”> where?

bensu13:08:36

I'm sorry I wasn't clear, to the html page where the tests are going to run.

bensu13:08:47

Is that how you currently add jquery?

ricardo13:08:00

Ah. Yes, that’s fine.

ricardo13:08:27

I currently have a unit-test.html which includes a reference to jquery.

bensu13:08:04

perfect. using a script tag.

bensu13:08:38

buenisimo :wink:

ricardo13:08:32

:simple_smile:

sdegutis16:08:44

I've been considering writing a minimal testing framework that has: 1. the simple syntax of clojure.test 2. reasonable output, such as by humane-test-output 3. color (green, red, yellow) when shown in a terminal 4. Java 8's WatchService for re-running tests

sdegutis16:08:46

any interest in this?