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

Support launching Mimic easily from Node.js #16

Open
john-twigg-ck opened this issue Nov 21, 2018 · 0 comments
Open

Support launching Mimic easily from Node.js #16

john-twigg-ck opened this issue Nov 21, 2018 · 0 comments

Comments

@john-twigg-ck
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I want to use Mimic in unit tests in node.js

Something like

describe('Unit test', () => {
    before(async() => {
        mimic.start("features.mimic")
    })
    it('Test Feature', (done) => {
        //test things that also make thrift calls
    })

    after(async () => {
        mimic.shutdown()
    })
})

Describe the solution you'd like
I'd like a single line entry for loading a mimic file and starting up the service stubs.

Describe alternatives you've considered
Running a shell script in parallel, but this wont work for Circle CI.

Additional context

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