ember-cli-addon-tests
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -7,3 +7,3 @@ "use strict"; | ||
var runEmber = require('../utilities/run-ember'); | ||
var _ = require('lodash'); | ||
var defaults = require('lodash/defaults'); | ||
var temp = require('../utilities/temp'); | ||
@@ -15,3 +15,3 @@ | ||
_.defaults(options, { | ||
defaults(options, { | ||
port: '49741', | ||
@@ -18,0 +18,0 @@ command: 'server' |
@@ -7,2 +7,3 @@ var fs = require('fs-extra'); | ||
var copyFixtureFiles = require('../utilities/copy-fixture-files'); | ||
var RSVP = require('rsvp'); | ||
@@ -28,3 +29,5 @@ function AddonTestApp() { | ||
app.path = appPath; | ||
return copyFixtureFiles(appName, appPath, options.fixturesPath); | ||
return options.noFixtures ? | ||
RSVP.resolve() : | ||
copyFixtureFiles(appName, appPath, options.fixturesPath); | ||
}) | ||
@@ -31,0 +34,0 @@ .then(function() { |
@@ -7,3 +7,3 @@ var path = require('path'); | ||
function copyFixtureFiles(appName, destDir, fixturesPath) { | ||
function findFixturesPath(fixturesPath) { | ||
fixturesPath = findup(fixturesPath || 'test/fixtures'); | ||
@@ -19,2 +19,10 @@ | ||
return fixturesPath; | ||
} | ||
function copyFixtureFiles(appName, destDir, fixturesPath) { | ||
if (!fixturesPath || !path.isAbsolute(fixturesPath)) { | ||
fixturesPath = findFixturesPath(fixturesPath); | ||
} | ||
var sourceDir = path.join(fixturesPath, appName); | ||
@@ -21,0 +29,0 @@ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var spawn = childProcess.spawn; | ||
var defaults = require('lodash/object/defaults'); | ||
var defaults = require('lodash/defaults'); | ||
var killCliProcess = require('./kill-cli-process'); | ||
@@ -28,3 +28,3 @@ var debug = require('./debug'); | ||
if (isWindows && command === 'npm') { | ||
if (isWindows && (command === 'npm' || command === 'bower')) { | ||
return exec(command + ' ' + args.join(' ')); | ||
@@ -31,0 +31,0 @@ } |
{ | ||
"name": "ember-cli-addon-tests", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "A set of integration test helpers for Ember CLI addons", | ||
@@ -27,6 +27,6 @@ "keywords": [ | ||
"exists-sync": "0.0.4", | ||
"findup-sync": "^0.3.0", | ||
"fs-extra": "^0.24.0", | ||
"fs-promise": "^0.3.1", | ||
"lodash": "^3.0.0", | ||
"findup-sync": "^0.4.3", | ||
"fs-extra": "^2.0.0", | ||
"fs-promise": "^2.0.0", | ||
"lodash": "^4.0.0", | ||
"mkdirp": "^0.5.1", | ||
@@ -33,0 +33,0 @@ "rsvp": "^3.1.0", |
## Ember CLI Addon Tests | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/tomdale/ember-cli-addon-tests.svg)](https://greenkeeper.io/) | ||
[![npm version](https://badge.fury.io/js/ember-cli-addon-tests.svg)](https://badge.fury.io/js/ember-cli-addon-tests) | ||
[![Build Status](https://travis-ci.org/tomdale/ember-cli-addon-tests.svg?branch=master)](https://travis-ci.org/tomdale/ember-cli-addon-tests) | ||
[![Build Status - Travis](https://travis-ci.org/tomdale/ember-cli-addon-tests.svg?branch=master)](https://travis-ci.org/tomdale/ember-cli-addon-tests) | ||
[![Build Status - AppVeyor](https://ci.appveyor.com/api/projects/status/ifp893hf5s6j5uuy/branch/master?svg=true)](https://ci.appveyor.com/project/tomdale/ember-cli-addon-tests/branch/master) | ||
@@ -111,4 +113,4 @@ Test helpers for testing Ember CLI addons inside the context of a real | ||
The following options exist: | ||
The following options exist: | ||
| option | description | defaults to | | ||
@@ -119,2 +121,3 @@ |------------------|-----------------------------------------------------------------------------------------|---------------------| | ||
| fixturesPath | The path to look for your fixture files (see below) | test/fixtures | | ||
| noFixtures | Disables the use of fixture files | false | | ||
@@ -133,2 +136,5 @@ | ||
If you do not need fixture files in your test, you can disable them by | ||
specifying the `noFixtures` option. | ||
### Editing App's `package.json` | ||
@@ -135,0 +141,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance 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
31882
684
214
2
+ Addedany-promise@1.3.0(transitive)
+ Addedarr-diff@2.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarray-unique@0.2.1(transitive)
+ Addedbraces@1.8.5(transitive)
+ Addeddetect-file@0.1.0(transitive)
+ Addedexpand-brackets@0.1.5(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedexpand-tilde@1.2.2(transitive)
+ Addedextglob@0.3.2(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.4(transitive)
+ Addedfindup-sync@0.4.3(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedfs-exists-sync@0.1.0(transitive)
+ Addedfs-extra@2.1.2(transitive)
+ Addedfs-promise@2.0.3(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.0(transitive)
+ Addedglobal-modules@0.2.3(transitive)
+ Addedglobal-prefix@0.1.5(transitive)
+ Addedhomedir-polyfill@1.0.3(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-extglob@1.0.0(transitive)
+ Addedis-glob@2.0.1(transitive)
+ Addedis-number@2.1.04.0.0(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedis-windows@0.2.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisobject@2.1.0(transitive)
+ Addedkind-of@3.2.26.0.3(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmicromatch@2.3.11(transitive)
+ Addedmz@2.7.0(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedparse-passwd@1.0.0(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-dir@0.1.1(transitive)
+ Addedthenify@3.3.1(transitive)
+ Addedthenify-all@1.6.0(transitive)
+ Addedwhich@1.3.1(transitive)
- Removedany-promise@0.1.0(transitive)
- Removedfindup-sync@0.3.0(transitive)
- Removedfs-extra@0.24.0(transitive)
- Removedfs-promise@0.3.1(transitive)
- Removedglob@5.0.15(transitive)
- Removedlodash@3.10.1(transitive)
Updatedfindup-sync@^0.4.3
Updatedfs-extra@^2.0.0
Updatedfs-promise@^2.0.0
Updatedlodash@^4.0.0