Skip to content

Conversation

@carole-lavillonniere
Copy link
Collaborator

Adds integration tests for the lstk start command, showcasing two approaches: Go and Bats.

This PR is only a draft for now and I would like to get your opinion @silv-io and only go with one kind of test.

  • test/integration/start_test.bats uses https://github.com/bats-core/bats-core
    These tests seem simpler to write, they are less verbose and we can be sure they are not reusing code from the CLI (if there's a bug in shared code e.g. config parsing, both CLI and test have the same bug, so it's better to not share any code). However they're not type-safe.

  • test/integration/start_test.go is testing exactly the same thing but is written in go, which brings simplicity (only one language) and type-safety.

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 this pull request may close these issues.

2 participants