last_hit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -12
- data/lib/last_hit/configure.rb +1 -1
- 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: 6b0ca1d31cda677a5479be222069951ba8cd2ada
|
4
|
+
data.tar.gz: 7d62a8adb2686ca5c272ca2ea7dcf2432e05c70b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50e4d9449ae408e67a6d30d73b4498108179fe2e5bbed180b388ea803fb00b8d7e3b37e21b21fa9151778caa6029a21c1506650420fa3ac70e67e700e7e350c5
|
7
|
+
data.tar.gz: 39fe5575d6568ab0216dcaa66333fb830f2a8d401f8a42094bff83e2cba1a34cd34907f8aa4b5c5ef901d278c369485ea3e1af507a06438875a85fe913b5bb19
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# LastHit
|
2
2
|
|
3
|
-
You push code to test
|
3
|
+
You finish your features, push code to test servers and they fails after centuries wating? This gem will reduce your waiting time by running relevant tests in your current branch.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'last_hit'
|
10
|
+
gem 'last_hit', group: :development
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -18,27 +18,34 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install last_hit
|
20
20
|
|
21
|
-
##
|
21
|
+
## Config
|
22
22
|
|
23
|
-
|
23
|
+
Create the file `config/initializers/last_hit.rb` and put below code to config the gem:
|
24
24
|
|
25
25
|
```ruby
|
26
|
-
|
26
|
+
require 'last_hit'
|
27
|
+
|
28
|
+
LastHit.configure do |config|
|
29
|
+
# The command that run the tests
|
30
|
+
config.test_command = 'spring rspec'
|
31
|
+
|
32
|
+
# The base branch to which your current branch will be compared
|
33
|
+
config.default_base_branch = 'develop'
|
34
|
+
end
|
27
35
|
```
|
28
36
|
|
29
|
-
|
37
|
+
## Usage
|
38
|
+
|
39
|
+
#### Run the current modified tests (before commiting)
|
30
40
|
|
31
41
|
```ruby
|
32
|
-
|
42
|
+
last_hit modified_tests
|
33
43
|
```
|
34
44
|
|
35
|
-
|
45
|
+
#### Run all modified tests of your current branch compared to the base branch
|
36
46
|
|
37
47
|
```ruby
|
38
|
-
|
39
|
-
config.test_command = "bundle exec rspec"
|
40
|
-
config.default_base_branch = "development"
|
41
|
-
end
|
48
|
+
last_hit all_tests
|
42
49
|
```
|
43
50
|
|
44
51
|
## Contributing
|
data/lib/last_hit/configure.rb
CHANGED
data/lib/last_hit/version.rb
CHANGED