Comparing version 0.0.3 to 0.0.4
@@ -27,3 +27,2 @@ #!/usr/bin/env node | ||
if (server.listen(4444)) { | ||
console.log('... Good!'); | ||
console.log('... Running tests...'); | ||
@@ -30,0 +29,0 @@ console.log(''); |
{ | ||
"name": "amaze-tdd", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A package for conducting functional front-end tests.", | ||
@@ -8,2 +8,3 @@ "dependencies": { | ||
"wdio-mocha-framework": "^0.4.3", | ||
"wdio-phantomjs-service": "^0.1.0", | ||
"wdio-spec-reporter": "0.0.3", | ||
@@ -10,0 +11,0 @@ "webdriverio": "^4.2.16" |
@@ -11,3 +11,3 @@ # Amaze test-driven development | ||
## Install | ||
## TLDR; Install | ||
@@ -56,1 +56,15 @@ `npm install -g amaze-tdd` | ||
You should run this in a separate Terminal instance. | ||
### "Can't find Python executable 'python'..." | ||
You need to either update or install Python for your system. See [this post on StackExchange](http://stackoverflow.com/questions/15126050/running-python-on-windows-for-node-js-dependencies#15126180) for more information. | ||
## In-depth install (also known as Windows) | ||
There are a few additional steps necessary to get this running in Windows. I'll detail those below: | ||
* Ensure you have the [Java Runtime Environment](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html) installed on your computer | ||
* In your Advanced System Settings, click "Environment Variables", then PATH, then the Edit button | ||
* Add the full directory to your Java install (usually C:\Program Files\Java\jre-[version]\bin\Java) | ||
* Assuming you've already cloned this repository, add another environment variable to your PATH that points to the location of `webdrivers\geckodriver.exe` found in this repo. Feel free to move them to a more static place on your machine if you wish. | ||
* Start the Selenium server and run the tests using the above directions |
@@ -17,3 +17,3 @@ var chai = require('chai'), | ||
it ('can find the search box', function() { | ||
browser.isVisible('#lst-ib', function(searchBox) { | ||
browser.isVisible('input[name="q"]', function(searchBox) { | ||
expect(searchBox).to.be.true; | ||
@@ -31,5 +31,6 @@ }); | ||
it ('can perform a search', function() { | ||
browser.setValue('#lst-ib', 'Deque accessibility'); | ||
browser.setValue('input[name="q"]', 'Deque accessibility'); | ||
browser.pause(2000); | ||
browser.getTitle(function(title) { | ||
console.log(title); | ||
expect(title).to.have.string('Deque accessibility - Google Search'); | ||
@@ -36,0 +37,0 @@ }); |
@@ -11,4 +11,12 @@ exports.config = { | ||
capabilities: [{ | ||
browserName: 'firefox' // firefox, chrome, phantomjs | ||
browserName: 'phantomjs', // firefox, chrome, phantomjs | ||
javascriptEnabled: true, | ||
acceptSslCerts: true, | ||
marionette: true | ||
}], | ||
services: ['phantomjs'], | ||
phantomjsOpts: { | ||
webdriverLogfile: 'phantomjs.log', | ||
ignoreSslErrors: true | ||
}, | ||
sync: true, | ||
@@ -15,0 +23,0 @@ logLevel: 'silent', // silent, verbose, command, data, result, error |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
50442655
13
112
69
5
5
+ Addedbuffer-from@1.1.2(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedextract-zip@1.7.0(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedfs-extra@1.0.0(transitive)
+ Addedhasha@2.2.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjsonfile@2.4.0(transitive)
+ Addedkew@0.7.0(transitive)
+ Addedklaw@1.3.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.0.0(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedphantomjs-prebuilt@2.1.16(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprogress@1.1.8(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedrequest-progress@2.0.1(transitive)
+ Addedthrottleit@1.0.1(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedwdio-phantomjs-service@0.1.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyauzl@2.10.0(transitive)
- Removedqs@6.13.1(transitive)