You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by benkeen <gi...@git.apache.org> on 2014/10/16 21:05:54 UTC

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

GitHub user benkeen opened a pull request:

    https://github.com/apache/couchdb-fauxton/pull/101

    Added support for running a single test via grunt

    Now we can run `grunt test:myfileSpec.js` to run a subset of the tests, or `grunt test` for all, as before.
    
    Closes COUCHDB-2394

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/benkeen/couchdb-fauxton 2394-grunt-single-test-support

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-fauxton/pull/101.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #101
    
----
commit 535072b523f1df13db29473fcf56a05c4fd1b19a
Author: Benjamin Keen <be...@gmail.com>
Date:   2014-10-16T19:04:33Z

    Added support for running a single test via grunt
    
    Closes COUCHDB-2394

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/101#discussion_r19012364
  
    --- Diff: readme.md ---
    @@ -43,36 +43,45 @@ And then...
     You should be able to access fauxton on `http://localhost:8000`
     
     ### Prepare Fauxton Release
    -    Follow the "Fauxton Setup" section,
    -    Edit settings.json variable root where the document will live.  eg.  "/_utils/fauxton/"
    -
    -    then:
    +Follow the "Fauxton Setup" section, edit settings.json variable root where the document will live,
    +e.g. "/_utils/fauxton/" then:
     
         grunt couchdb
     
    -    This will install the latest version of Fauxton into `/share/www/fauxton`
    +This will install the latest version of Fauxton into `/share/www/fauxton`
     
     ### Running Tests
    -    There are two ways to run the tests. `grunt test` will run the tests via the commandline. It is also possible to view them via the url
    -    `http://localhost:8000/testrunner` when the dev server is running. Refreshing the url will rerun the tests via phantomjs and in the browser.
    +
    +`grunt test` on the command line will run all tests. To run an individual test, run `grunt test:yourTestSpec.js` -
    +that will limit the tests to only those with that particular filename.
    +
    +It is also possible to run them via your browser. Load `http://localhost:8000/testrunner` while the dev server
    --- End diff --
    
    if not we should replace it with the local `couchdb-fauxton/test/runner.html`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen closed the pull request at:

    https://github.com/apache/couchdb-fauxton/pull/101


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/101#issuecomment-59538663
  
    Honestly, now I know about running the script via file:// I'm no longer so concerned about this issue... it was really having to locate the test I was working on via the command line output that was a drag. In a browser it's super easy to search. 
    
    I'll update the README in a bit.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/101#discussion_r19027729
  
    --- Diff: readme.md ---
    @@ -43,36 +43,45 @@ And then...
     You should be able to access fauxton on `http://localhost:8000`
     
     ### Prepare Fauxton Release
    -    Follow the "Fauxton Setup" section,
    -    Edit settings.json variable root where the document will live.  eg.  "/_utils/fauxton/"
    -
    -    then:
    +Follow the "Fauxton Setup" section, edit settings.json variable root where the document will live,
    +e.g. "/_utils/fauxton/" then:
     
         grunt couchdb
     
    -    This will install the latest version of Fauxton into `/share/www/fauxton`
    +This will install the latest version of Fauxton into `/share/www/fauxton`
     
     ### Running Tests
    -    There are two ways to run the tests. `grunt test` will run the tests via the commandline. It is also possible to view them via the url
    -    `http://localhost:8000/testrunner` when the dev server is running. Refreshing the url will rerun the tests via phantomjs and in the browser.
    +
    +`grunt test` on the command line will run all tests. To run an individual test, run `grunt test:yourTestSpec.js` -
    +that will limit the tests to only those with that particular filename.
    +
    +It is also possible to run them via your browser. Load `http://localhost:8000/testrunner` while the dev server
    --- End diff --
    
    Thanks for your explanation on IRC - so cool! Yeah, we should totally update the docs. That URL "works" inasmuch as after entering it on your browser it runs the tests via the command line output for your open 8000 port. That seems pretty irksome to me, but I didn't know about running file:///path/to/couchdb-fauxton/test/runner.html in your browser. 
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/101#discussion_r19012226
  
    --- Diff: readme.md ---
    @@ -3,21 +3,21 @@ Fauxton
     
     Fauxton is the new Web UI for CouchDB. To get it running in development on your machine. Follow the steps below.
     
    -## COUCHDB is required ##
    +## CouchDB is Required
     
     Install couchdb from docs here: http://couchdb.readthedocs.org/en/latest/install/index.html
     
    -## Setup Fauxton ##
    +## Setup Fauxton
     
     A recent of [node.js](http://nodejs.org/) and npm is required.
     
    -### FORK THIS REPO
    +### Fork this Repo
     
    -    1. Fork the THIS repo: https://github.com/apache/couchdb-fauxton.git
    -    2. add upstream to the main git repo 'git remote add git-repo https://github.com/apache/couchdb-fauxton.git'
    -    2. add upstream to the private apache repo 'git remote add upstream http://git-wip-us.apache.org/repos/asf/couchdb-fauxton.git'
    -    3. cd couchdb-fauxton
    -    4. npm install
    +1. Fork the THIS repo: https://github.com/apache/couchdb-fauxton.git
    --- End diff --
    
    `Fork the THIS repo`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by kxepal <gi...@git.apache.org>.
Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/101#discussion_r19012283
  
    --- Diff: readme.md ---
    @@ -3,21 +3,21 @@ Fauxton
     
     Fauxton is the new Web UI for CouchDB. To get it running in development on your machine. Follow the steps below.
     
    -## COUCHDB is required ##
    +## CouchDB is Required
     
     Install couchdb from docs here: http://couchdb.readthedocs.org/en/latest/install/index.html
     
    -## Setup Fauxton ##
    +## Setup Fauxton
     
     A recent of [node.js](http://nodejs.org/) and npm is required.
     
    -### FORK THIS REPO
    +### Fork this Repo
     
    -    1. Fork the THIS repo: https://github.com/apache/couchdb-fauxton.git
    -    2. add upstream to the main git repo 'git remote add git-repo https://github.com/apache/couchdb-fauxton.git'
    -    2. add upstream to the private apache repo 'git remote add upstream http://git-wip-us.apache.org/repos/asf/couchdb-fauxton.git'
    -    3. cd couchdb-fauxton
    -    4. npm install
    +1. Fork the THIS repo: https://github.com/apache/couchdb-fauxton.git
    --- End diff --
    
    I think it's hard to fork something else around (:


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fauxton pull request: Added support for running a single t...

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/101#discussion_r19012321
  
    --- Diff: readme.md ---
    @@ -43,36 +43,45 @@ And then...
     You should be able to access fauxton on `http://localhost:8000`
     
     ### Prepare Fauxton Release
    -    Follow the "Fauxton Setup" section,
    -    Edit settings.json variable root where the document will live.  eg.  "/_utils/fauxton/"
    -
    -    then:
    +Follow the "Fauxton Setup" section, edit settings.json variable root where the document will live,
    +e.g. "/_utils/fauxton/" then:
     
         grunt couchdb
     
    -    This will install the latest version of Fauxton into `/share/www/fauxton`
    +This will install the latest version of Fauxton into `/share/www/fauxton`
     
     ### Running Tests
    -    There are two ways to run the tests. `grunt test` will run the tests via the commandline. It is also possible to view them via the url
    -    `http://localhost:8000/testrunner` when the dev server is running. Refreshing the url will rerun the tests via phantomjs and in the browser.
    +
    +`grunt test` on the command line will run all tests. To run an individual test, run `grunt test:yourTestSpec.js` -
    +that will limit the tests to only those with that particular filename.
    +
    +It is also possible to run them via your browser. Load `http://localhost:8000/testrunner` while the dev server
    --- End diff --
    
    does `http://localhost:8000/testrunner` load for you?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---