-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdev.yml
54 lines (45 loc) · 1.5 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This file is for Shopify employees development environment.
# If you are an external contributor you don't have to bother with it.
name: job-iteration
up:
- packages:
- mysql_client
- ruby
- bundler
- mysql
- redis
- custom:
name: Create Job Iteration database
meet: mysql -uroot -h $MYSQL_HOST -P $MYSQL_PORT -e "CREATE DATABASE job_iteration_test"
met?: mysql -uroot -h $MYSQL_HOST -P $MYSQL_PORT job_iteration_test -e "SELECT 1" &> /dev/null
commands:
test:
run: bin/test "$@"
syntax:
optional: filename testnamepattern
aliases: [t]
desc: run tests
long_desc: |
{{bold:Default}}
=======
Run the entire test suite.
Examples:
{{command:dev test}}
{{command:dev t}}
{{bold:Run all tests in a file}}
========================
Include the file path.
Example:
{{command:dev test test/unit/iteration_test.rb}}
{{bold:Run a single test in a given file}}
========================
Include the file path and the name of the test you'd like to run.
Example:
{{command:dev test test/unit/iteration_test.rb test_that_it_has_a_version_number}}
{{bold:Run all tests in a given file whose name contains a string}}
========================
Include the file path and the string that the test names should contain.
Example:
{{command:dev test test/unit/iteration_test.rb version_number}}
style:
run: bundle exec rubocop -a