Questions tagged [intern]

A JavaScript testing framework.

Description

Intern is an open-source project hosted on GitHub. It is a complete test stack for JavaScript designed to help you write and run consistent, high-quality test cases for your JavaScript libraries and applications. It can be used to test any JavaScript code.

External links

556 questions
5
votes
2 answers

How can I get terminal size in a piped node.js process?

I'm using Grunt to kick off a unit-test framework (Intern), which ultimately pipes another node.js process that I'm then using Charm to output results to the screen. I'm having to pass in the terminal size information from a Grunt config option, but…
Martin
  • 1,289
  • 3
  • 13
  • 22
5
votes
1 answer

Remote debugging Internjs that runs on selenium chromedriver

I try to remotely debug tests run by Internjs. Basically it is a Chrome that is run by Selenium and Chromedriver. I set up Chromedriver debuggerAddress option as debuggerAddress: '127.0.0.1:8765' Now when I run tests Selenium waits some time and…
5
votes
2 answers

How to test harmony / ES6 / ECMAScript 6 JavaScript?

As per the title, I'm trying to test some AMD modules written in ES6 JS, running from nodejs. I tried first with Intern: even after enabling --harmony in nodejs, I ended up facing Intern's dependency chain, where I was not able to enable Harmony in…
superjos
  • 12,189
  • 6
  • 89
  • 134
4
votes
2 answers

Why does a bunch of leadfoot stuff run in the browser when starting my intern test?

All, Thank you in advance. I am running a single functional test using intern and local selenium. When I start the test, the following happens: Chrome opens Lots of stuff runs (not mine). My test finally runs I looked at the selenium output and…
rockerston
  • 521
  • 2
  • 10
4
votes
1 answer

Intern: loop on Promise.>

Let's say I have the following DOM structure, for simplicity:
A
B
Bruno Bruzzano
  • 477
  • 7
  • 21
4
votes
1 answer

Setting cookies for internjs functional tests

I'm trying to set a cookie for an intern functional test, but the cookie data doesn't seem to be available on the page. Here's the setup: registerSuite(function() { 'test': function() { return this.remote …
Brian Tol
  • 4,149
  • 6
  • 24
  • 27
4
votes
1 answer

Is there console.log output support to terminal/command-line with intern-runner?

I have a dependency with Intern where we have to spin up a Selenium server and use PhantomJS for our tests. We use Jenkins and may need some more inspection/debug output to console but the console.log's get suppressed from the test files to…
d48
  • 702
  • 7
  • 15
4
votes
1 answer

stepping in Intern functional tests

My question is how can one put breakpoints in functional tests? Is it possible in Intern? I'm running the testcases locally on WebDriver, and having 'debugger;' breakpoints will ease my testcase development. execute(function () { debugger; })…
stafamus
  • 509
  • 2
  • 9
4
votes
1 answer

What is the purpose of intern js proxy with respect to the functional testing aspect

Question: What is the purpose of the proxy? In all the documentation, there is not a single direct explanation as to why the proxy is there - yet, it seems to be an essential piece of the intern.js puzzle. What is it's responsibility, which of…
freddy mercury
  • 608
  • 1
  • 7
  • 19
4
votes
1 answer

test suite paths when using ArcGIS JSAPI as an alternate loader in intern

I have an application built using ArcGIS Javascript API and I've been adding tests using intern. I run it under IIS in Windows 7 while developing. I had no trouble getting the intern tutorial working when getting started and after looking at How to…
wizardbyte
  • 110
  • 5
3
votes
1 answer

String.intern() shows strange result, how does it work

I know that String.intern() adds string to pool if it does not contain the object, but how to explain the results. The code below: public static void main(String[] args) { char[] abc = new char[]{'a','b','c'}; String str = new…
周雪静
  • 153
  • 1
  • 3
  • 10
3
votes
1 answer

Intern Selenium error: BUG: suiteEnd was received for invalid session

I am trying to get functional testing working using Intern 4 by running a headless Chrome browser for testing. I believe everything is set up correctly and have recently installed selenium-server-standalone for Mac terminal. I am getting the…
3
votes
0 answers

Transpiling JSX for use in InternJS Tests

I'm implementing (or trying to implement) unit/functional tests for our app and would like to use InternJS as a test runner with the Enzyme testing utility. To unit test our components the JSX needs to be transpiled. The Intern docs contain a React…
Brett DeWoody
  • 59,771
  • 29
  • 135
  • 184
3
votes
1 answer

intern running foo and bar tests without being called

I have created automated tests for intern (testing framework), whenever I run the test through selenium-server it runs a series of foo and bar unit tests that aren't in my testing directories. are these tests run from an intern or selenium…
Bryan C
  • 33
  • 3
3
votes
2 answers

Intern JS - how can I use Promise.all() within chained Command methods?

I am new to writing tests with Intern JS and have been following their documentation to use the Object interface and Page objects, particularly. According to the docs, the idea behind page objects is to encapsulate the DOM for a particular page, in…
teatime
  • 201
  • 2
  • 5
1
2
3
37 38