• This repository has been archived on 07/Nov/2020
  • Stars
    star
    118
  • Rank 294,211 (Top 6 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Workshop: Writing Testable JavaScript

Installation

You will need to use the command line to install the dependencies for this project. See the section below on accessing the command line if you need help.

Note that you may need to perform some of these steps as an administrator. On OSX and Linux, you can run commands as an administrator by prefixing them with sudo and then typing in your password when prompted. On Windows, you will need to launch the cmd.exe program as an administrator.

Node

You will need to install Node.js v0.8.8 or newer to use this repo (you can also use a package manager). You can verify that Node is installed correctly by running node --version from the command line.

Packages

Once you have Node installed, run npm install from the root directory of this project to install the dependencies.

Grunt

Install grunt by running npm install -g grunt.

PhantomJS

See the PhantomJS section here for details on installing PhantomJS.

Running the Code and Tests

  • To run the tests: grunt test
  • To run the server: node server

Running Specs

The specs in this repo are for demonstrating how you can use Selenium to write integration tests. You don't need to run them, but you can if you want to.

The specs make use of Ruby, so if you want to run them, you will need to have Ruby ~1.9.3 installed. You will also need to gem install bundler and then bundle install from the root directory of this project.

Once you have Ruby, bundler, and the required gems, you can run grunt spec to run the specs.

Accessing the command line

Windows

Open cmd.exe (From the Start Menu, search for "cmd"). When installing npm modules globally, you may need to "Run as administrator," which you can do by right-clicking the cmd name in the programs list.

OS X

Open Terminal.app in /Applications/Utilities.

More Repositories

1

js-assessment

A test-driven approach to assessing JS skills
JavaScript
5,155
star
2

jqfundamentals

Code repository for jQuery Fundamentals training
JavaScript
1,170
star
3

srchr-demo

JavaScript
150
star
4

js-assessment-answers

JavaScript
125
star
5

chrome-http2-log-parser

JavaScript
115
star
6

dojo-demo

Using the Dojo Toolkit for MVC JavaScript applications
JavaScript
56
star
7

ffco

Functionality-Focused Code Organization
JavaScript
44
star
8

srchr

A crowdsourced JavaScript exercise
43
star
9

bvjs

JavaScript
41
star
10

js-minty-fresh

JavaScript
29
star
11

large-jquery-apps

Demo for jQuery code org talk
JavaScript
26
star
12

dojo-scaffold

Scaffolding a Buildable Dojo Application
JavaScript
22
star
13

frontend-dev-baseline

JavaScript
17
star
14

refactor-jquery

Cleaner, Leaner, Meaner: Refactoring Your jQuery
JavaScript
17
star
15

jquery-module

Module creation and loading for jQuery
JavaScript
16
star
16

dotfiles

Vim Script
16
star
17

js-testing-boilerplates

JavaScript
15
star
18

object-literals

Object Literals Example Code
JavaScript
14
star
19

jQuery-201

JavaScript
9
star
20

johnny-five-projects

JavaScript
9
star
21

dojo-sandbox

Sandbox for Dojo presentations
JavaScript
8
star
22

mulberry

Home of Toura Mulberry, tools and a framework for quickly producing cross-platform mobile applications using Javascript, HTML, CSS, and PhoneGap
JavaScript
8
star
23

txjs-site

Website for TXJS
PHP
7
star
24

srchr-ember

srchr-ember
JavaScript
6
star
25

rmurphey.github.com

HTML
6
star
26

responsive-ui

Delivering a Responsive UI
5
star
27

blog-octopress

JavaScript
5
star
28

js-games

JavaScript
5
star
29

ttlpodcast.com

CSS
5
star
30

arduino-display

JavaScript
4
star
31

jQuery-Fundamentals-Temp

JavaScript
4
star
32

dojo-transformers

A Dojo demo centered around transformers
JavaScript
3
star
33

js-sandbox

JavaScript
3
star
34

ffconf-mulberry-demo

JavaScript
3
star
35

dojo-boilerplate

3
star
36

olivercam

JavaScript
3
star
37

mustache-cats

Mulberry app for Cats with Mustaches!
JavaScript
2
star
38

sandbox

2
star
39

mulberry-demos

Demo apps for mulberry
JavaScript
2
star
40

blog-jekyll

Ruby
2
star
41

jmvc-sandbox

Sandbox for JavaScriptMVC demos
2
star
42

project-euler

My (undoubtedly sub-optimal) answers to the Project Euler questions
Ruby
2
star
43

wtf3pjs

JavaScript
1
star
44

flitter

test csv data against yaml-specified conditions
Ruby
1
star
45

shoppingbot

JavaScript
1
star
46

js-games-server

JavaScript
1
star