Skip to content

Commit

Permalink
Split the test into two.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhammond committed Jun 11, 2016
1 parent 5501345 commit 6d3d2d5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tests/fixtures/*
common-tmp/*

lib/broccoli/app-*.js
lib/broccoli/modules-from-meta.js
lib/broccoli/test-support-*.js
lib/broccoli/tests-*.js
lib/broccoli/vendor-*.js
57 changes: 57 additions & 0 deletions tests/acceptance/addon-modules-test-slow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
'use strict';

var Promise = require('../../lib/ext/promise');
var path = require('path');
var fs = require('fs-extra');
var remove = Promise.denodeify(fs.remove);
var addonName = 'some-cool-addon';
var spawn = require('child_process').spawn;
var chalk = require('chalk');
var expect = require('chai').expect;

var symlinkOrCopySync = require('symlink-or-copy').sync;
var runCommand = require('../helpers/run-command');
var ember = require('../helpers/ember');
var copyFixtureFiles = require('../helpers/copy-fixture-files');
var killCliProcess = require('../helpers/kill-cli-process');
var assertDirEmpty = require('../helpers/assert-dir-empty');
var acceptance = require('../helpers/acceptance');
var createTestTargets = acceptance.createTestTargets;
var teardownTestTargets = acceptance.teardownTestTargets;
var linkDependencies = acceptance.linkDependencies;
var cleanupRun = acceptance.cleanupRun;

describe('Acceptance: addon-smoke-test', function() {
this.timeout(450000);

before(function() {
return createTestTargets(addonName, {
command: 'addon'
});
});

after(function() {
return teardownTestTargets();
});

beforeEach(function() {
return linkDependencies(addonName);
});

afterEach(function() {
return cleanupRun().then(function() {
assertDirEmpty('tmp');
});
});

it('can add modules via `{{content-for "head"}}`', function() {
return copyFixtureFiles('addon/content-for-head')
.then(function() {
return ember(['test']);
})
.then(function(result) {
expect(result.exitCode).to.eql(0);
});
});

});
10 changes: 0 additions & 10 deletions tests/acceptance/addon-smoke-test-slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,6 @@ describe('Acceptance: addon-smoke-test', function() {
});
});

it('can add modules via `{{content-for "head"}}`', function() {
return copyFixtureFiles('addon/content-for-head')
.then(function() {
return ember(['test']);
})
.then(function(result) {
expect(result.exitCode).to.eql(0);
});
});

it('build with only pod templates', function() {
return copyFixtureFiles('addon/pod-templates-only')
.then(function() {
Expand Down

0 comments on commit 6d3d2d5

Please sign in to comment.