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

Reorganise configuration #57

Closed
bcaudan opened this issue Aug 20, 2016 · 0 comments
Closed

Reorganise configuration #57

bcaudan opened this issue Aug 20, 2016 · 0 comments

Comments

@bcaudan
Copy link
Owner

bcaudan commented Aug 20, 2016

configuration is a bit messy, it could be clearer with something like:

{
  suite: {
    displayNumber: false,        // display each suite number (hierarchical)
  },
  spec: {
    displayStacktrace: false,   // display stacktrace for each failed assertion
    displaySuccessful: true,    // display each successful spec
    displayFailed: true,            // display each failed spec
    displayPending: false,       // display each pending spec
    displayDuration: false,      // display each spec duration
  },
  summary: {
    displayStacktrace: false,   // display stacktrace for each failed assertion
    displaySuccesses: false,  // display summary of all successes after execution
    displayFailures: true,        // display summary of all failures after execution
    displayPending: true,       // display summary of all pending specs after execution
  },
  colors: {
    success: 'green',
    failure: 'red',
    pending: 'yellow'
  },
  prefixes: {
    success: '✓ ',
    failure: '✗ ',
    pending: '* '
  },
  customProcessors: []
}

It should still work with the previous configuration version to avoid to break all the existing integration.
Custom processors using default options would probably need to be rewrited.

bcaudan added a commit that referenced this issue Dec 29, 2016
- Extract groups in configuration #57
- Rationalise options name
- Type configuration
bcaudan added a commit that referenced this issue Dec 29, 2016
- Extract groups in configuration #57
- Rationalise options name
- Type configuration
bcaudan added a commit that referenced this issue Dec 29, 2016
- Extract groups in configuration #57
- Rationalise options name
- Type configuration
bcaudan added a commit that referenced this issue Dec 29, 2016
- Extract groups in configuration #57
- Rationalise options name
- Type configuration
bcaudan added a commit that referenced this issue Dec 29, 2016
- Extract groups in configuration #57
- Rationalise options name
- Type configuration
@bcaudan bcaudan closed this as completed Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant