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

Use bats-core instead of bats #269

Closed
wants to merge 1 commit into from
Closed

Use bats-core instead of bats #269

wants to merge 1 commit into from

Conversation

extsoft
Copy link
Contributor

@extsoft extsoft commented Jun 10, 2020

There is a separate Docker worker that allows running Bats tests based
on version 1.2.0 of bats-core project. This modification allows
receiving updates to the test runner.

All testing procedure is reworked in a way that workflows file is
responsible for running Docker workers for testing while scripts,
located at .workflows directory, just run the needed workflows without
pointing to an environment.

tests/git-elegant.bats was updated as in Bash 3.x (which is used in
the Bats worker) is not possible to get the last element of the array.
So, show-commands in the tests is replaced with prune-repository as
the last command produces the same amount of lines comparing to the fact
that adding or removing of command will affect the output of
show-commands.

#135

The contribution:

  • updates all affected documentation
  • provides commits messages which comply with the CONTRIBUTING.md > Committing the changes rules
  • updates the completion scripts if requires
  • complies with all requirements from README.md > Hands-on development notes

@bees-hive/elegant-git-maintainers, please review.

There is a separate Docker worker that allows running Bats tests based
on version 1.2.0 of `bats-core` project. This modification allows
receiving updates to the test runner.

All testing procedure is reworked in a way that `workflows` file is
responsible for running Docker workers for testing while scripts,
located at `.workflows` directory, just run the needed workflows without
pointing to an environment.

`tests/git-elegant.bats` was updated as in Bash 3.x (which is used in
the Bats worker) is not possible to get the last element of the array.
So, `show-commands` in the tests is replaced with `prune-repository` as
the last command produces the same amount of lines comparing to the fact
that adding or removing of command will affect the output of
`show-commands`.

#135
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.

1 participant