Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework: introduce config file with all test names to be included in the single tests runner #3801

Merged
merged 4 commits into from
Mar 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions client/lib/domains/Makefile

This file was deleted.

21 changes: 0 additions & 21 deletions client/lib/domains/test/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions client/lib/post-formats/test/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions client/lib/posts/test/index.js

This file was deleted.

13 changes: 0 additions & 13 deletions client/lib/store/Makefile

This file was deleted.

5 changes: 1 addition & 4 deletions client/lib/store/test/index-test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
/**
* External dependencies
*/
import chai, { expect } from 'chai';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
import sinonChai from 'sinon-chai';

/**
* Internal dependencies
*/
import Dispatcher from 'dispatcher';
import { createReducerStore } from './../index';

chai.use( sinonChai );

describe( 'Store reducer creation', () => {
const reducer = state => {
return state;
Expand Down
13 changes: 0 additions & 13 deletions client/state/Makefile

This file was deleted.

146 changes: 2 additions & 144 deletions client/state/test/index.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
/**
* External dependencies
*/
import Chai, { expect } from 'chai';
import { expect } from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import nock from 'nock';

/**
* Internal dependencies
*/
import { createReduxStore } from '../';

describe( 'state', () => {
before( () => {
Chai.use( sinonChai );
nock.disableNetConnect();
} );

after( () => {
nock.cleanAll();
nock.enableNetConnect();
nock.restore();
} );

describe( 'index', () => {
describe( 'createReduxStore', () => {
it( 'can be called without specifying initialState', () => {
const reduxStoreNoArgs = createReduxStore().getState();
Expand Down Expand Up @@ -61,133 +48,4 @@ describe( 'state', () => {
} );
} );
} );

describe( 'application', () => {
require( '../application/test/actions' );
require( '../application/test/reducer' );
} );

describe( 'comments', () => {
require( '../comments/test/actions' );
require( '../comments/test/reducer' );
require( '../comments/test/selectors' );
} );

describe( 'current-user', () => {
require( '../current-user/test/actions' );
require( '../current-user/test/reducer' );
require( '../current-user/test/selectors' );
} );

describe( 'notices', () => {
require( '../notices/test/actions' );
require( '../notices/test/reducer' );
} );

describe( 'plugins', () => {
describe( 'wporg', () => {
require( '../plugins/wporg/test/reducer' );
require( '../plugins/wporg/test/test-actions' );
require( '../plugins/wporg/test/test-selectors' );
} );
} );

describe( 'post-types', () => {
require( '../post-types/test/actions' );
require( '../post-types/test/reducer' );
require( '../post-types/test/selectors' );
} );

describe( 'posts', () => {
require( '../posts/test/actions' );
require( '../posts/test/reducer' );
require( '../posts/test/selectors' );
} );

describe( 'receipts', () => {
require( '../receipts/test/reducer' );
} );

describe( 'sharing', () => {
describe( 'publicize', () => {
require( '../sharing/publicize/test/actions' );
require( '../sharing/publicize/test/reducer' );
require( '../sharing/publicize/test/selectors' );
} );
} );

describe( 'site-settings', () => {
describe( 'exporter', () => {
require( '../site-settings/exporter/test/actions' );
require( '../site-settings/exporter/test/reducer' );
require( '../site-settings/exporter/test/selectors' );
} );
} );

describe( 'sites', () => {
require( '../sites/test/actions' );
require( '../sites/test/reducer' );

describe( 'plans', () => {
require( '../sites/plans/test/actions' );
require( '../sites/plans/test/reducer' );
} );
} );

describe( 'support', () => {
require( '../support/test/actions' );
require( '../support/test/reducer' );
} );

describe( 'themes', () => {
describe( 'current-theme', () => {
require( '../themes/current-theme/test/index' );
require( '../themes/current-theme/test/reducer' );
} );

describe( 'theme-details', () => {
require( '../themes/theme-details/test/reducer' );
require( '../themes/theme-details/test/selectors' );
} );

describe( 'themes', () => {
require( '../themes/themes/test/index' );
require( '../themes/themes/test/reducer' );
} );

describe( 'themes-last-query', () => {
require( '../themes/themes-last-query/test/reducer' );
} );

describe( 'themes-list', () => {
require( '../themes/themes-list/test/index' );
require( '../themes/themes-list/test/reducer' );
} );
} );

describe( 'ui', () => {
require( '../ui/test/actions' );
require( '../ui/test/reducer' );
require( '../ui/test/selectors' );

describe( 'editor', () => {
describe( 'contact-form', () => {
require( '../ui/editor/contact-form/test/actions' );
require( '../ui/editor/contact-form/test/reducer' );
} );
} );

describe( 'reader', () => {
describe( 'fullpost', () => {
require( '../ui/reader/fullpost/test/actions' );
require( '../ui/reader/fullpost/test/reducer' );
} );
} );
} );

describe( 'users', () => {
require( '../users/test/actions' );
require( '../users/test/reducer' );
require( '../users/test/selectors' );
} );
} );
115 changes: 115 additions & 0 deletions client/test/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"lib": {
"domains": {
"dns": {
"test": [ "index-test", "reducer-test" ]
},
"email-forwarding": {
"test": [ "reducer-test", "store-test" ]
},
"nameservers": {
"test": [ "store-test" ]
},
"test": [ "assembler-test" ],
"whois": {
"test": [ "assembler-test", "store-test" ]
}
},
"post-formats": {
"test": [ "actions", "store" ]
},
"post-metadata": {
"test": [ "index" ]
},
"post-normalizer": {
"test": [ "index" ]
},
"posts": {
"test": [ "actions", "post-edit-store", "post-list-store", "utils" ]
},
"store": {
"test": [ "index-test" ]
}
},
"state": {
"application": {
"test": [ "actions", "reducer" ]
},
"comments": {
"test": [ "actions", "reducer", "selectors" ]
},
"current-user": {
"test": [ "actions", "reducer", "selectors" ]
},
"notices": {
"test": [ "actions", "reducer" ]
},
"plugins": {
"wporg": {
"test": [ "reducer", "test-actions", "test-selectors" ]
}
},
"post-types": {
"test": [ "actions", "reducer", "selectors" ]
},
"posts": {
"test": [ "actions", "reducer", "selectors" ]
},
"receipts": {
"test": [ "reducer" ]
},
"sharing": {
"publicize": {
"test": [ "actions", "reducer", "selectors" ]
}
},
"site-settings": {
"exporter": {
"test": [ "actions", "reducer", "selectors" ]
}
},
"sites": {
"plans": {
"test": [ "actions", "reducer" ]
},
"test": [ "actions", "reducer" ]
},
"support": {
"test": [ "actions", "reducer" ]
},
"themes": {
"current-theme": {
"test": [ "index", "reducer" ]
},
"theme-details": {
"test": [ "reducer", "selectors" ]
},
"themes": {
"test": [ "index", "reducer" ]
},
"themes-last-query": {
"test": [ "reducer" ]
},
"themes-list": {
"test": [ "index", "reducer" ]
}
},
"ui": {
"editor": {
"contact-form": {
"test": [ "actions", "reducer" ]
}
},
"reader": {
"fullpost": {
"test": [ "actions", "reducer" ]
}
},
"test": [ "actions", "reducer", "selectors" ]
},
"users": {
"test": [ "actions", "reducer", "selectors" ]
},
"test": [ "index" ]
}
}
Loading