[GitHub] cordova-plugin-test-framework pull request #24: Add important build step abo...

2017-05-23 Thread filmaj
Github user filmaj commented on a diff in the pull request:


https://github.com/apache/cordova-plugin-test-framework/pull/24#discussion_r118083583
  
--- Diff: README.md ---
@@ -63,6 +64,8 @@ For example, the `cordova-plugin-device` plugin has this 
nested [`plugin.xml`](h
 
 The `cordova-plugin-test-framework` plugin will automatically find all 
`tests` modules across all plugins for which the nested tests plugin is 
installed.
 
+> **Important:** Inside your project's `tests/` folder you also have to 
create a `package.json`. See the [`package.json` of the 
`cordova-plugin-device`](https://github.com/apache/cordova-plugin-device/blob/736c7b9dfdfa25a924ffc3d1e409450633a8c00f/tests/package.json)
 for an example.
--- End diff --

Ah yes, good point. Could I suggest, however, that we reword this a bit and 
move the paragraph up above the previous "...will automatically find all 
`tests` modules" paragraph?

In particular, I would structure this paragraph just like the first 
paragraph in the section, in a similar, instruction-providing way. Explaining 
_why_ this needs to be done would be a nice touch, too - it would help users 
understand the intentions behind each requirement. In particular, the latest 
version of the tools ensure to run `npm install` on any plugin added to a 
project, to ensure to pull in any dependencies. Therefore, plugin authors can 
now put npm dependencies around their tests into the `package.json` file.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org



[GitHub] cordova-plugin-test-framework pull request #24: Add important build step abo...

2017-05-22 Thread davidschreiber
GitHub user davidschreiber opened a pull request:

https://github.com/apache/cordova-plugin-test-framework/pull/24

Add important build step about packages.json

This step is necessary or tests won't build. The original issue that fixed 
this issue in all Cordova projects is was only closed recently, but the 
information was missing in this repository: 
https://issues.apache.org/jira/browse/CB-12685

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

$ git pull https://github.com/davidschreiber/cordova-plugin-test-framework 
patch-1

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

https://github.com/apache/cordova-plugin-test-framework/pull/24.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 #24


commit ec8c77eaf39e53f03b37f4ac68f5abe45634f19c
Author: David Schreiber-Ranner 
Date:   2017-05-22T09:53:56Z

Add important build step

This step is necessary or tests won't build. The original issue that fixed 
this issue in all cordova projects is was only closed recently, but the 
information was missing in this repository: 
https://issues.apache.org/jira/browse/CB-12685




---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org