Questions tagged [testem]

testem is a test runner for Javascript unit testing.

Testem is a test runner, that support many test libraries.

Features

Here a summary of the main feature :

  • Test-framework agnostic. Support for
  • Run tests in all major browsers as well as Node and PhantomJS
  • Two distinct use-cases:
    • Test-Driven-Development( TDD ) — designed to streamline the TDD workflow
    • Continuous Integration( CI ) — designed to work well with popular CI servers like Jenkins or Teamcity
  • Cross-platform support
    • OS X
    • Windows
    • Linux
  • Preprocessor support

Official site :https://github.com/testem/testem

46 questions
1
vote
1 answer

Run "ember test" without PhantomJS installed globally

I have an Ember CLI project which I am building using Maven, and I am trying to figure out how to have maven be able to run the tests without a prior assumption of having PhantomJS globally installed. I am using the frontend-maven-plugin to install…
Dustin Wilhelmi
  • 1,769
  • 2
  • 13
  • 27
1
vote
0 answers

Node launcher for testem using jasmine framework

I am testing nodejs backend code with jasmine and trying to set up testem. My testem.json: { "framework": "jasmine", "launchers": { "Node": { "command": "jasmine" } }, "launch_in_dev": [ "Node" …
1
vote
0 answers

Testem / Jasmine: How to change jasmine version in grunt-contrib-testem

Is it possible to change the Jasmine version in grunt-contrib-testem? I would like to use the latest 2.3 version of Jasmine. This latest version has methods like beforeAll and afterAll. When I tried to set framework to jasmine2.3 in Grunt…
Vijey
  • 6,536
  • 7
  • 43
  • 50
1
vote
2 answers

How can I test a directive for a load event?

So, I made this simple directive angular .module('cherrytech.common', []) .directive('ctOnload', function() { return { restrict: 'A', scope: { callback: '&ctOnload' }, …
João Dias
  • 238
  • 2
  • 16
1
vote
1 answer

When I run ember test and visit /tests the results are inconsistent, how can I troubleshoot why these are different?

I have been working with ember for a little over a month now and I have yet to find a solution to some testing inconsistencies I have been experiencing. The problem is that when I run ember test from the command line and visit /tests in the browser…
1
vote
1 answer

Ember cli and testem

I'm new to Ember, and I'd like to get a simple project up and running, and have some integration tests running in chrome. I bought the book "Developing an Ember.js Edge" where they create the application ember-trackr but as all things in the JS…
prule
  • 2,536
  • 31
  • 32
1
vote
1 answer

how to test server REST API with testem

Testem has a config option serve_files that serves the client side code for me. But i need to run my server because It has a REST API, and client side uses it. How do i configure testem to run my server before running the tests? Or is this against…
eguneys
  • 6,028
  • 7
  • 31
  • 63
0
votes
1 answer

Ember CLI tests fails inside dev container

I'm working in a VSCode Dev Container on Debian Release 10. I'm able to run CI=true ember test in my own terminal without fail but running it in my container instance throws; not ok 1 Chrome - [undefined ms] - error --- message: > …
Noah64
  • 89
  • 6
0
votes
1 answer

Why is testem reporting all the tests as a single test?

I have multiple passing tests, but everything is reported as a single test. This is a Node app, it never runs in the browser. Output 1..1 tests 1 pass 1 Testem config: module.exports = { src_files: [ 'test/**/*.js' ], launchers: { …
givanse
  • 14,503
  • 8
  • 51
  • 75
0
votes
1 answer

cannot found lodash in npm installation

I installed lodash and several other libraries this way: npm install grunt-contrib-jshint --save-dev npm install grunt-contrib-testem --save-dev npm install sinon --save-dev npm install -g phantomjs npm install lodash --save npm install jquery…
Nisanio
  • 4,056
  • 5
  • 34
  • 46
0
votes
1 answer

Upgrading to Embe-cli@2.7.0 killed ember test -s for browsers

After upgrading an ember project to ember-cli@2.7.0 I stumbled upon problem of getting $ ember test -s work with my test browsers again (Chromium, Firefox). Only PhantomJS was launched, no matter how I did set up config file testem.js
Pavol
  • 1,200
  • 8
  • 20
0
votes
1 answer

How to set up Testem to support Angular 2 unit tests?

I have been using Testem to write unit tests for Angular 1 apps for a while now, I like it. I'm migrating my dev framework from Angular 1 to Angular 2. I'm trying to avoid investing too much time figuring out how to set up Testem in Angular 2. I…
Rodrigo Silveira
  • 141
  • 2
  • 15
0
votes
1 answer

Get emberjs code coverage into sonarqube

iam trying to get the code-coverage from my ember-addon project into sonarqube. The CodeCoverage is created with ember-cli-blanket. The LCOV File, which can be imported by the SonarQube runner is created and filled with coverage data, but…
jps
  • 1
  • 3
0
votes
1 answer

AngularJS + Testem + Jasmine: Why is inject() giving this $injectorr error?

I'm using Testem with Jasmine to set up an environment to start unit testing in my AngularJS app. Everything was working great until the first time I tried to use the injector. This is what I got back: test.js describe('Custom events', function(){ …
scott_trinh
  • 155
  • 1
  • 8
0
votes
1 answer

Testem gulp task hangs after finished

This gulp task doesn't exit after finished, I have to manually press Ctrl-C to exit. gulp.task('test', function(done) { var testem = require('testem'); var testemOptions = { file: 'testem.json' }; var t = new testem(); …
eguneys
  • 6,028
  • 7
  • 31
  • 63