Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pokle/tushtacular
Use Karma to test non-AngularJS javascript
https://github.com/pokle/tushtacular
Last synced: 10 days ago
JSON representation
Use Karma to test non-AngularJS javascript
- Host: GitHub
- URL: https://github.com/pokle/tushtacular
- Owner: pokle
- Created: 2013-03-02T02:32:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-05T23:26:23.000Z (over 11 years ago)
- Last Synced: 2023-03-11T00:19:15.790Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TushTacular
[![Circle CI Build Status](https://circleci.com/gh/pokle/TushTacular.png?circle-token=6b4b88a0d80e58c518f0cbdd364e5e279f8c036b)](https://circleci.com/gh/pokle/TushTacular)
This is a demonstrator (or even a seed project) that shows you how to test your non-AngularJS javascript apps using Karma (formerly Testacular).
## First install some dependencies if you don't have them:
* Nodejs [http://nodejs.org](http://nodejs.org)
* Karma [http://karma-runner.github.io/](http://karma-runner.github.io/)npm install -g karma # Install Karma globally
## Grab the TushTacular demo:
git clone https://github.com/pokle/TushTacular.git
cd TushTacular## Run it!
karma start
You should see Chrome start up and run the the tests defined in test/sample.jstest/sample.js has two tests - both open up www.whitepages.com.au (but it could be anything), and:
1. Checks that the a particular javascript object defined by the javascript on the website is available from the tests (yes! you can dig into the javascript environment in the browser)
2. Performs a search