Skip to content

KateKate/test_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test

description

Demo

...

Installation

You need Gulp installed globally:

$ npm i -g gulp

Install the dependencies:

$ npm install

You can execute any task like this:

$ gulp [task-name]

This is the list of available tasks:

  • dev: build the application and runs it in a dev server (webpack-dev-server)

  • dist: build a distribution version of the application

    flags:

    • --stage: builds the stage distribution version
  • stage: builds the stage distribution version. It is a shortcut to gulp dist --stage task

  • tdd: executes specs in ~/spec/unit/ and watches for changes

  • ci: executes specs ~/spec/unit/ one time (useful for CI scenarios, jenkins job)

  • lint: executes eslint task

Developement

Run in the dev server:

$ gulp dev

Open http://localhost:9090/webpack-dev-server/ in a browser.

Deployment

  • Distribution version

  1. Run Gulp's task:
$ gulp dist
  1. Move the content of dist folder to the place where main site can reach it

...

  • Stage version

  1. Run Gulp's task: gulp stage

  2. Move the content of stage folder to a web server

  3. Point to the index.html file

Tech

This project uses the following tech stack:

  • Gulp
  • Webpack
  • React
  • Babel - compiler for turning ES6+ code into ES5
  • Mocha - feature-rich JavaScript test framework
  • Chais - BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework
  • PhantomJS - is a scripted, headless browser used for automating web page interaction.
  • Sinon - standalone test spies, stubs and mocks for JavaScript. No dependencies, works with any unit testing framework.
  • Axios - promise based HTTP client for the browser and node.js

Change log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published