File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
# frozen_string_literal: true
3
3
4
+ # This script is used to run the tests for this project.
5
+ #
6
+ # bundle exec bin/test [test_file_name ...]
7
+ #
8
+ # If no test file names are provided, all tests in the `tests/units` directory will be run.
9
+
4
10
require 'bundler/setup'
5
11
6
12
`git config --global user.email "git@example.com"` if `git config --global user.email` . empty?
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
- test " $# " -ne 0 && echo " Unsupported args: $@ " >&2 && exit 145
2
+
3
+ # This script is used to run the tests for this project in a Docker container.
4
+ #
5
+ # bin/test-in-docker [test_file_name ...]
6
+ #
7
+ # If no test file names are provided, all tests in the `tests/units` directory will be run.
8
+
3
9
cd " $( dirname " ${BASH_SOURCE[0]} " ) " /..
4
10
5
11
export COMPOSE_FILE=tests/docker-compose.yml
@@ -8,4 +14,4 @@ export COMPOSE_PROJECT_NAME=ruby-git_dev
8
14
docker-compose rm -svf
9
15
docker-compose build --force-rm
10
16
11
- docker-compose run --rm tester && docker-compose rm -svf || ( docker-compose logs && exit 1 )
17
+ docker-compose run --rm tester " $@ " && docker-compose rm -svf || ( docker-compose logs && exit 1 )
Original file line number Diff line number Diff line change @@ -9,5 +9,4 @@ RUN bundle install
9
9
10
10
ADD . .
11
11
12
- ENTRYPOINT ["bundle" , "exec" ]
13
- CMD ["bin/test" ]
12
+ ENTRYPOINT ["bundle" , "exec" , "bin/test" ]
You can’t perform that action at this time.
0 commit comments