Skip to content

How to feature test tools built on dockerpty? #47

@michaelbarton

Description

@michaelbarton

I have been using dockerpty and find it very useful. Thank you for creating and
releasing it - managing ttys seems very complicated and I absolutely sure I
would have never been able to achieve the funtionality this library provides
myself.

I am using this library to write a tool that makes it simpler for users who are
not familiar with Docker (in this case biologists) to be able to use Docker
containers in their work. I've managed to get create a command to launch a tty
using dockerpty, this was very straight forward.

I would however like to create feature tests to make sure that this tty
functionality is not broken in future releases of the tool. I am able to
manually drive the tool and test it works but obviously automated tests on a CI
server are more desireable. Having a behave drive these tests however seems
quite difficult and I just seem to only be able to get the tests to hang when
the tty is launched. I've looked through the step_definitions in this project
however they are bit beyond me. Documentation online related to subprocesses
and ptys is quite dense and I'm not sure if I'm working in the right direction.

I was hoping that by opening this issue you might be able to provide some
direction, or perhaps give a simple example of where I might get started with
integrating this kind of test into behave. My non-working features are
here
if that is of any use.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions