This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
forked from Shopify/job-iteration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.yml
55 lines (46 loc) · 1.53 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
55
# 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:
- homebrew:
- mysql-client:
or: [mysql@5.7]
- ruby:
version: 2.7.6
- isogun
- bundler
- custom:
name: Create Job Iteration database
meet: mysql -uroot -h job-iteration.railgun -e "CREATE DATABASE job_iteration_test"
met?: mysql -uroot -h job-iteration.railgun 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