Вы находитесь на странице: 1из 4

AngularJS Test

Frameworks and Tools


AngularJS, commonly referred to as Angular, is an open-source web application framework maintained by
Google and a community of individual developers and corporations to address many of the challenges encountered
in developing single-page applications.

Author: Sara Stanford

AngularJS
Test Frameworks and Tools
AngularJS is proclaimed to be HTML enhanced for web apps. Google maintains and
promotes AngularJS, an open source web application framework for web applications
requiring HTML,CSS and JavaScripts at the client side. It makes development and testing
both easier by enhancing the web apps with MVC or model view controller; an
architecture for implementing User Interfaces or UI.
HTML is the most trustworthy for declaring static documents, but when it comes to
declaring dynamic views in web-applications, it is a tough call. AngularJS allows
extending of HTML vocabulary to cater to the dynamic views. AngularJS libraries read
HTML containing tag attributes and then follow the directives from the tags. The input or
output of the page is bound to a model represented by JavaScript variables whose values
are manipulated from Static or Dynamic JSON resources. The two way data binding
makes it an effective tool for efficiently building client-side web apps.

Test Frameworks and Tools for AngularJS


The numerous AngularJS tools and test frameworks enable environment for the much
desired perfect test.

Karma
This is the test runner for AngularJS. It has all the competent features to
facilitate reliable testing.

Features
Test on Real Devices
Test your code on real browsers and real devices such as phones,
tablets
Remote Control
Control the whole workflow from the command line or the IDE.
Whe a file is saved, Karma will run all the tests.
Testing Framework Agnostic
Describe tests with Jasmine, Mocha, QUnit or write a simple adapter
for any framework of choice
Open Source
Developed for and maintained by the open source community at
GitHub
Easy Debugging
Easy debugging directly from your IDE via WebStorm or Google
Chrome
Continuous Integration
Simple integration with Jenkins, Travis or Semaphore.
Angular Mocks
This is a Namespace from angular-mocks.js which contains testing related
code. It provides support for injecting and mocking Angular services in unit
tests.
Protractor
It is an E2E test framework for Angular apps. The feature testing tool for
AngularJS, launches the app in a browser and interacts with it via Selenium.
Mocha
True to the claims of being simple, flexible and fun, Mocha is a feature-rich
JavaScript test framework running on node.js and the browser for
asynchronous testing. Mocha tests run serially, allowing for flexible and
accurate reporting, while mapping uncaught exceptions to the correct test
cases.
Enables writing describe blocks and making assertions.
Chai
It is a BDD / TDD assertion library for node.js and the browser that can be
coupled with any javascript testing framework.
It is an Assertion library that hooks into Mocha, and gives access to
Behavior-Driven Development assertions like expect, should, and assert.
Chai as Promised
This Chai plug-in is really helpful for dealing with function calls that return
a promise. It extends Chai with assertions about promises.
Browseify
Allows us to easily require modules of code between files in the project by
bundling up all dependencies.
Lodash

It is a Utility Library delivering consistency, customization and


performance. These utilities are used to extend JavaScript and make it
easier to work with.
Sinon
This is a standalone test spies, stubs and mocks for JavaScript, with no
dependencies and works with any unit-testing framework. It is a Stubbing
and mocking library. It is used to mock out directive and controller
dependencies in unit tests, and to check that functions are being called with
the correct arguments.

SPEC INDIA offers independent QA and testing services spanning the entire software
release life cycle. As a ISO 9001:2008 company we ensure process driven approach in all
our quality assurance practices and testing. Quality is at the helm of every project that we
associate with and is assured in policies for every aspect of the project, be it project plan,
scope, cost, integration, communication, human resource management or stakeholder
management.
To increase the reliability of software quality checks, we harness the potentials of
contemporary Testing tools to deliver the industry best for quality with near zero post
delivery defects.

Вам также может понравиться