JavaScript for Line of Business Applications
596.1K views | +0 today
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tag: 'testing'. Clear
Scoop.it!

Isomorphic TypeScript, fetch, promises, ava and coverage

Isomorphic TypeScript, fetch, promises, ava and coverage | JavaScript for Line of Business Applications | Scoop.it

Writing an API client in JavaScript is a lot of work, you have to write one for Node.js and one for the browser. I found out a way to have both on the same codebase with the same API, all that with only changes to the build scripts. It’s called isomorphic code, and doing it with modern TypeScript isn’t easy, but it’s achievable.

TypeScript brings lots of advantages to the JavaScript world with almost mandatory typings. But TypeScript code is transpiled, and to play well with other libraries that aren’t originally written in TypeScript needs manually written type definition and some hacks to play well with other external tools, like code coverage and test frameworks.

No comment yet.
Scoop.it!

Automated Testing in EmberJS

A high-level introduction to testing in EmberJS. This talk explains the difference between unit, integration and acceptance tests, when to use each and how to get started with ember-cli-mocha.

No comment yet.
Scoop.it!

Easily testing React components with react-test-tree

Easily testing React components with react-test-tree - Qubit Engineering - Medium
While I love React, testing React components leaves a lot to be desired. The TestUtils are useful but don’t have a parti…
No comment yet.
Scoop.it!

Better Ember-CLI Testing with Sinon.js

Better Ember-CLI Testing with Sinon.js | JavaScript for Line of Business Applications | Scoop.it
How to improve your Ember-CLI app's tests with Sinon.js for both QUnit and Mocha frameworks.
No comment yet.
Scoop.it!

Vorlon.JS by Microsoft - test and debug JavaScript on any device

Vorlon.JS by Microsoft - test and debug JavaScript on any device | JavaScript for Line of Business Applications | Scoop.it

An open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript. Powered by node.js and socket.io.

No comment yet.
Scoop.it!

Testing JavaScript

Testing JavaScript | JavaScript for Line of Business Applications | Scoop.it

My team at Opower has gone through several evolutions of our testing philosophy. Although I now feel confident that we are now testing the right set of contracts, we’ve made some mistakes along the way. I’d like to share those lessons learned with you.

No comment yet.
Scoop.it!

Protractor: Tips & Tricks

The tips and tricks of using protractor for writing e2e tests with AngularJS
No comment yet.
Scoop.it!

Automate NW.js UI testing

Automate NW.js UI testing | JavaScript for Line of Business Applications | Scoop.it
NW.js, previously known as node-webkit is a technology that enables a whole new way of writing desktop applications using web technologies. If you are not familier with it, I strongly suggest you get acquainted, and after you do, get...
No comment yet.
Scoop.it!

Testing AngularJS Page with Protractor

Testing AngularJS Page with Protractor | JavaScript for Line of Business Applications | Scoop.it

In this tip, I would like to describe how to perform E2E (End to End) Test using Protractor for an Angular JS page/site.

No comment yet.
Scoop.it!

Testing ReactJS Components with Karma and Webpack

Testing ReactJS Components with Karma and Webpack | JavaScript for Line of Business Applications | Scoop.it

I switched over to Karma to test my components, and spent my time building my test assets and loading them up to Karma, but that ended up being kind of slow because I never cached the builds and ran a clean webpack build for each bundle. Ugh. Facebook went on to release Jest and I switched over. I thought it was great, but I quickly ran into some issues...

No comment yet.
Scoop.it!

is.js - Check types, regexps, presence, time and more...

is.js - Check types, regexps, presence, time and more... | JavaScript for Line of Business Applications | Scoop.it

This is a general-purpose check library. Not only for Assertion Testing.

No comment yet.
Scoop.it!

Measuring Client-Side JavaScript Test Coverage With Istanbul

Measuring Client-Side JavaScript Test Coverage With Istanbul | JavaScript for Line of Business Applications | Scoop.it

Use Istanbul to get an in-depth look at what you currently are and aren't testing in your JavaScript app.

Rather than using test coverage as a measure of developer thoroughness, it makes a lot more sense to use coverage as a way of seeing which code isn't covered (hint: it's often else branches). That information can then be used to prioritize testing goals.

In summary: don't use code coverage to measure what's tested, use it to find out what isn't.

No comment yet.
Scoop.it!

Run Protractor Tests in Parallel

Run Protractor Tests in Parallel | JavaScript for Line of Business Applications | Scoop.it

My team has been using Protractor for our end to end tests for a couple months now, and the amount of time the test suite takes to finish has grown as we add more tests. So we started looking for ways to speed our tests up. We already have a Selenium grid running with a few browser instances connected to it. Ideally we would like to split the tests out to be ran in parallel among the browser instances in the grid.

No comment yet.
Scoop.it!

Unit testing with Jest: Redux + async actions + fetch

Unit testing with Jest: Redux + async actions + fetch | JavaScript for Line of Business Applications | Scoop.it
Recently, I’ve been writing an app with the React/Redux combo. It uses an external API and I decided to use a fetch polyfill in order to make my network requests. Following the Redux-way, I’ve used Async Action Creators in combination with redux-thunk. Here is how my action looks like:…
No comment yet.
Scoop.it!

How React Components Make UI Testing Easy

How React Components Make UI Testing Easy | JavaScript for Line of Business Applications | Scoop.it

Unit testing is great: it’s the best way to see if an algorithm does the right thing every time, or to check our input validation logic, or data transformations, or any other isolated operation. Unit testing is perfect for fundamentals.

But front-end code isn’t about manipulating data. It’s about user events and rendering the right views at the right time. Front-ends are about users.

Here’s what we want to be able to do:

  • Test user events
  • Test the response to those events
  • Make sure the right things render at the right time
  • Run tests in many browsers
  • Re-run tests on file changes
  • Work with continuous integration systems like Travis

In the ten years I’ve been doing this, I hadn’t found a decent way to test user interaction and view rendering until I started poking at React.

No comment yet.
Scoop.it!

Better Unit Testing in ReactJS

Better Unit Testing in ReactJS | JavaScript for Line of Business Applications | Scoop.it

Better Unit Testing in ReactJS
with expanded-react-test-utils

No comment yet.
Scoop.it!

Testing React Web Apps with Mocha

Testing React Web Apps with Mocha | JavaScript for Line of Business Applications | Scoop.it

Unit testing is an essential part of software engineering. Tests provide living documentation of expected behaviors, prevent regressions, and facilitate refactoring. Web applications benefit from testing as much as any other kind of software.

In recent years there’s been a proliferation of JavaScript frameworks and testing tools. Piecing together a combination of tools that works well can be daunting. We useReact.js components in CycleDash, so in this post I’ll describe our usage of Mocha for testing React with JSX and ECMAScript 6 (Harmony).

No comment yet.
Scoop.it!

Testing AngularJS with Protractor and Karma

Testing AngularJS with Protractor and Karma | JavaScript for Line of Business Applications | Scoop.it
Let's look at how to test an AngularJS application with Protractor and Karma!

Part 1 - In the first part we’ll look at unit tests, which ensure that small, isolated pieces of code (e.g., a unit) behave as expected.
Part 2 - In part two we’ll address E2E tests, which verify that all the pieces of code (units) fit together by simulating the user experience through browser automation.

Jan Hesse's insight:

Part 2:

http://mherman.org/blog/2015/04/26/testing-angularjs-with-protractor-and-karma-part-2/

No comment yet.
Scoop.it!

Testing React apps with Protractor

Testing React apps with Protractor | JavaScript for Line of Business Applications | Scoop.it

If you’ve ever used AngularJS, you’ll know that it has a pretty cool built-in testing setup - Karma for unit testing, and Protractor for end-to-end testing. I love Protractor, but recently ran into issues when trying to use it for a non-Angular project. Here’s how to get it working.

If you’ve not encountered end-to-end testing before, you’re in for a treat. Unlike unit testing, which is designed to validate very small components, an end-to-end test can be used to simulate how a user will actually interact with your website. We can make it go to a page, click a link, check the right page gets loaded, give it some input, check it displays the correct output - whatever you want, really. Used in conjunction with other forms of testing, it gives us a really useful look at how our site’s working, and is great for helping us catch any sneaky regressions.

No comment yet.
Scoop.it!

Js.Edgar - Lightweight Spy/Mock Library for JavaScript

Js.Edgar - Lightweight Spy/Mock Library for JavaScript | JavaScript for Line of Business Applications | Scoop.it

This library is meant to create, manage, and direct spies for testing JavaScript.

Js.Edgar is built to be lightweight and flexible; it should work with any testing framework. Specifically, the tests for this library are written in QUnit, so integration with that framework has been well-documented. As such, all major examples will show how to utilize Js.Edgar within QUnit.

No comment yet.
Scoop.it!

CasperJS the Friendly Testing Framework

CasperJS the Friendly Testing Framework | JavaScript for Line of Business Applications | Scoop.it

If you don’t like testing your product, most likely your customers won’t like to test it either.– Anonymous


It’s a neat JavaScript project that uses PhantomJS to open a headless browser, go to your site, take some actions and then make assertions. We’re using CasperJS for end-to-end testing and we’re automating the test runs with Grunt.

No comment yet.
Scoop.it!

Testing React applications with wallaby.js

Testing React applications with wallaby.js | JavaScript for Line of Business Applications | Scoop.it

Wallaby.js is a continuous test runner. It runs your tests as you type and displays various results right inside your code editor. Wallaby.js allows you to test your React applications and get an instant feedback from your tests, no matter how large your codebase is and whether you are using browser environment or node.js with jsdom. With wallaby.js, you can use any popular testing framework of your choice.


In this article I will describe how to test React application, specifically React components, using Jasmine and wallaby.js with code coverage, including code coverage inside JSX element JavaScript expressions. You can find the full code in this repository.

No comment yet.
Scoop.it!

Automating JavaScript tests with QUnit, PhantomJS and Grunt

Automating JavaScript tests with QUnit, PhantomJS and Grunt | JavaScript for Line of Business Applications | Scoop.it
QUnit’s setup is fairly simple and is easy to use. To get started, I will be using a simple boilerplate webpage. Notice that the two files required for QUnit (qunit-x.js and qunit-x.css) are included in the page source. Additionally, I have some inline JavaScript for which QUnit tests will be written. home.html Within tests.js, I …
No comment yet.
Scoop.it!

Test driven Development & Qunit Tutorial

Test driven development Quint tutorial javascript
Arvind Gupta's curator insight, February 4, 2015 3:43 AM

Good article TDD javascript

Scoop.it!

Wallaby - intelligent test runner for JavaScript

Wallaby - intelligent test runner for JavaScript | JavaScript for Line of Business Applications | Scoop.it

Wallaby.js is an intelligent test runner for JavaScript that continuously runs your tests. It reports code coverage and other results directly to your code editor immediately as you change your code. Wallaby.js uses various tricks to run your tests as fast as possible, such as dependency analysis to only execute tests affected by your code changes and parallel test execution.

No comment yet.