testing

Testing tools, testing philosophy & methodology...
ricardo 2015-08-20T12:26:07.000117Z

Is @bensu still around?

ricardo 2015-08-20T12:26:35.000118Z

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

ricardo 2015-08-20T12:27:13.000119Z

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

ricardo 2015-08-20T13:06:11.000120Z

@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.

2015-08-20T13:13:56.000121Z

Hi @ricardo: there should be.

2015-08-20T13:15:36.000122Z

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.

2015-08-20T13:16:00.000123Z

what runner are you using?

ricardo 2015-08-20T13:17:06.000124Z

phantomjs. Will do.

ricardo 2015-08-20T13:17:47.000125Z

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

ricardo 2015-08-20T13:19:06.000126Z

Done.

2015-08-20T13:19:11.000127Z

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.

2015-08-20T13:19:41.000128Z

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

ricardo 2015-08-20T13:36:26.000129Z

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

2015-08-20T13:38:36.000130Z

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

2015-08-20T13:38:47.000131Z

Is that how you currently add jquery?

ricardo 2015-08-20T13:39:00.000132Z

Ah. Yes, that’s fine.

ricardo 2015-08-20T13:39:27.000133Z

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

2015-08-20T13:40:04.000134Z

perfect. using a script tag.

ricardo 2015-08-20T13:40:16.000135Z

Correct.

2015-08-20T13:40:38.000136Z

buenisimo 😉

ricardo 2015-08-20T13:57:32.000137Z

:simple_smile:

2015-08-20T16:39:44.000138Z

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

2015-08-20T16:39:46.000139Z

any interest in this?