last_hit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/last_hit/cli.rb +2 -2
- data/lib/last_hit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1cf8247d032a84b0a22135cb45e652d7f98a5e8
|
4
|
+
data.tar.gz: fd3018d870623710528ca096bd6b86ef1c1109a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20583d9960f3715eb4b86bb137547f3ff9c03bfb0fbfeba89d4307f73c13a98bceb1929361705de4e1424768b5dd1865dc771ab981a0c5cca545f626ffd2b659
|
7
|
+
data.tar.gz: a6e2e8fa1b04e72e4459e5007895ddde985027202cf61531d660c0262396e1414ef156fd15aaabed6030bf0af0fe12c099db2f6dbc6711ce7a7114b3fe1d6877
|
data/README.md
CHANGED
@@ -45,9 +45,11 @@ last_hit modified_tests
|
|
45
45
|
#### Run all modified tests of your current branch compared to the base branch
|
46
46
|
|
47
47
|
```ruby
|
48
|
-
last_hit all_tests
|
48
|
+
last_hit all_tests -b develop
|
49
49
|
```
|
50
50
|
|
51
|
+
`develop` is your base branch
|
52
|
+
|
51
53
|
## Contributing
|
52
54
|
|
53
55
|
1. Fork it ( https://github.com/[my-github-username]/last_hit/fork )
|
data/lib/last_hit/cli.rb
CHANGED
@@ -6,13 +6,13 @@ class LastHit
|
|
6
6
|
|
7
7
|
desc 'modified_tests', 'Run tests which are currently modified'
|
8
8
|
def modified_tests
|
9
|
-
LastHit.modified_tests
|
9
|
+
LastHit.new.modified_tests
|
10
10
|
end
|
11
11
|
|
12
12
|
desc 'all_tests', 'Run all tests which have been modified in the current branch'
|
13
13
|
method_option :base, aliases: '-b', desc: 'Base branch for compare', type: :string
|
14
14
|
def all_tests
|
15
|
-
LastHit.all_tests(options[:base])
|
15
|
+
LastHit.new.all_tests(options[:base])
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/last_hit/version.rb
CHANGED