Requirejs + Testem + custom runner

171 views
Skip to first unread message

Roberto Guerra

unread,
Oct 28, 2013, 12:01:06 AM10/28/13
to testem...@googlegroups.com
I've setup testem with grunt running my specs for an AMD(requirejs) app. This is what I did:

1. The app is optimized into a file. The main.js for the specs just load jasmine and run the tests.
2. It works fine, the tests are run on chrome when testem starts, and it listens to modifications, etc.
3. The problem is that the results are not displayed on the terminal. It always displays 0/0 tests.
4. I had to set the framework to 'custom' to run the jasmine tests because it was conflicting with the default jasmine setup.

So, my question is: how do I get the output to be rendered on the terminal also?


Thanks for an awesome tool.

Toby Ho

unread,
Oct 31, 2013, 6:19:18 AM10/31/13
to Roberto Guerra, testem...@googlegroups.com
Using `custom` for the framework is the reason. `custom` is meant for people using a testing framework that is not already supported by Testem, see example


Since Testem already supports Jasmine, I don't recommend rewriting the Jasmine adapter. If the default `jasmine` setup some how isn't working for you I would suggest

1. figuring what isn't working
2. if you need custom setup, using a custom test page https://github.com/airportyh/testem#custom-test-pages

Toby


--
You received this message because you are subscribed to the Google Groups "Testem Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testem-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Roberto Guerra

unread,
Oct 31, 2013, 8:22:28 AM10/31/13
to testem...@googlegroups.com, Roberto Guerra
When I use a custom test page I don't get any feedback on the console, only on the browser. I'll give this https://github.com/kozy4324/Jasmine-TAPReporter a try next.
Reply all
Reply to author
Forward
0 new messages