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

fail CI if any tests have solo: true #244

Merged
merged 2 commits into from
Jan 4, 2017
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
4 changes: 4 additions & 0 deletions test/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ describe( 'generate', () => {

const config = loadConfig( dir );

if ( config.solo && process.env.CI ) {
throw new Error( 'Forgot to remove `solo: true` from test' );
}

( config.skip ? it.skip : config.solo ? it.only : it )( dir, () => {
let compiled;

Expand Down
2 changes: 0 additions & 2 deletions test/generator/component-yield-multiple-in-if/_config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export default {
solo: true,

html: `
<div><p class='widget'>Hello</p></div>
`,
Expand Down
4 changes: 4 additions & 0 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ describe( 'parse', () => {

const solo = exists( `test/parser/${dir}/solo` );

if ( solo && process.env.CI ) {
throw new Error( 'Forgot to remove `solo: true` from test' );
}

( solo ? it.only : it )( dir, () => {
const input = fs.readFileSync( `test/parser/${dir}/input.html`, 'utf-8' ).replace( /\s+$/, '' );

Expand Down
4 changes: 4 additions & 0 deletions test/sourcemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ describe( 'sourcemaps', () => {

const solo = exists( `test/sourcemaps/${dir}/solo` );

if ( solo && process.env.CI ) {
throw new Error( 'Forgot to remove `solo: true` from test' );
}

( solo ? it.only : it )( dir, () => {
const input = fs.readFileSync( `test/sourcemaps/${dir}/input.html`, 'utf-8' ).replace( /\s+$/, '' );
const { code, map } = svelte.compile( input );
Expand Down
4 changes: 4 additions & 0 deletions test/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ describe( 'ssr', () => {

const solo = exists( `test/server-side-rendering/${dir}/solo` );

if ( solo && process.env.CI ) {
throw new Error( 'Forgot to remove `solo: true` from test' );
}

( solo ? it.only : it )( dir, () => {
const component = require( `./server-side-rendering/${dir}/main.html` );

Expand Down
4 changes: 4 additions & 0 deletions test/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ describe( 'validate', () => {

const solo = exists( `test/validator/${dir}/solo` );

if ( solo && process.env.CI ) {
throw new Error( 'Forgot to remove `solo: true` from test' );
}

( solo ? it.only : it )( dir, () => {
const filename = `test/validator/${dir}/input.html`;
const input = fs.readFileSync( filename, 'utf-8' ).replace( /\s+$/, '' );
Expand Down