GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TradeMe/tractor: A UI around Protractor to help write E2E tests for Angular applications without needing to know JavaScript

BranchesTags
Open more actions menu

Latest commit

 

History

1,419 Commits
1,419 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
packages
packages
 
 
plugins
plugins
 
 
types
types
 
 
.codeclimate.yml
.codeclimate.yml
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE.MD
RELEASE.MD
 
 
babel.config.js
babel.config.js
 
 
greenkeeper.json
greenkeeper.json
 
 
jest.config.js
jest.config.js
 
 
lerna.json
lerna.json
 
 
mocha.opts
mocha.opts
 
 
package.json
package.json
 
 
protractor.conf.js
protractor.conf.js
 
 
test.js
test.js
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 
webpack.config.js
webpack.config.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

tractor

A UI around Protractor to help write E2E tests for Angular applications without needing to know JavaScript

Greenkeeper badge npm version Code Climate Test Coverage lerna

This repository contains the code for the underlying infrastructure of tractor, as well as some plugins that contain the main functionality.

Install

To install the cli, add @tractor/cli as a dev dependency to your Angular application:

npm install @tractor/cli -D

That will install the CLI, which can then be used inside your application.

Setup

To get started, you'll need to run the following:

./node_modules/.bin/tractor init

The initialisation can be configured with a tractor.conf.js file (described in the Config section).

Once everything has been initialised, you need to start the tractor application from the root directory of your app with:

./node_modules/.bin/tractor start

The app should then be available running at http://localhost:4000. The port can be configured in the tractor.conf.js file.

Config

If you want to change the port that tractor runs at, or the different environments you can target, you need to add a tractor.conf.js file in the root of your app directory. It might look something like the following:

module.exports = {
    port: number,                // defaults to 4000
    environments: Array<string>  // a list of URLs for the environments to run the tests in
};

The tractor.conf.js file is also used to configure any plugins you have installed.

Development

To set up development:

yarn # install dependencies and initialise workspaces
lerna run build # build and test all the packages

More information on yarn workspaces.

More information on lerna.

You can use lerna to run commands across all packages, or groups of packages:

lerna run test # run unit test in all packages
lerna run compile --scope="@tractor-plugins/*" # runs JavaScript compiler in all @tractor-plugin packages
lerna run test:e2e:ci --scope="@tractor/ui" # run end-to-end tests in the @tractor/ui package only

About

A UI around Protractor to help write E2E tests for Angular applications without needing to know JavaScript

Topics

angulare2ejavascriptprotractortestingtractor

Resources

Readme
MIT license
Activity
Custom properties

Stars

25 stars

Watchers

13 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.