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

New CLI command to create test files #812

Open
fecony opened this issue May 5, 2021 · 0 comments
Open

New CLI command to create test files #812

fecony opened this issue May 5, 2021 · 0 comments

Comments

@fecony
Copy link
Contributor

fecony commented May 5, 2021

Feature Request

New CLI command to create test files

Description

As I know there is no commands to create test file. When I was looking at new docs testing section I though that it has some code that will be repeated in each test file.

const config = new BoosterConfig('test')
config.appName = 'testing-time'

Booster CLI command would create the test file to help developers to start writing new tests without copy-pasting same code.

Possible Solution

Create command that will generate test file under tests/ folder.

  • Command: boost new:test [name]

  • Minimal skeleton content of created test file:

import { expect } from '../expect'

const config = new BoosterConfig('test')
config.appName = 'testing-time' // 'testing' + [app name] ?

describe('[name]', () => {
  it('should...', () => {
    expect(true).to.be.true
  })
})
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

Successfully merging a pull request may close this issue.

1 participant