techcor 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +7 -7
- data/Rakefile +5 -5
- data/db/seed.rb +3 -3
- data/features/describe_project.feature +13 -13
- data/features/list_projects.feature +1 -1
- data/features/property_history.feature +18 -18
- data/features/step_definitions/add_project.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/commands/gli/add.rb +1 -1
- data/lib/commands/gli/add_metric.rb +1 -1
- data/lib/commands/gli/describe.rb +1 -1
- data/lib/commands/gli/edit_property.rb +1 -1
- data/lib/commands/gli/history.rb +1 -1
- data/lib/commands/gli/hooks.rb +2 -2
- data/lib/commands/gli/list.rb +1 -1
- data/lib/commands/gli/program.rb +1 -2
- data/lib/gli_interface.rb +1 -1
- data/lib/{tc → techcor}/version.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +9 -9
- /data/bin/{tc → techcor} +0 -0
- /data/lib/{tc.rb → techcor.rb} +0 -0
data/README.md
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
[](https://codeclimate.com/github/maksar/
|
1
|
+
[](http://travis-ci.org/maksar/techcor)
|
2
|
+
[](https://codeclimate.com/github/maksar/techcor)
|
3
3
|
|
4
4
|
Technical Coordination project
|
5
5
|
---------------
|
6
6
|
|
7
7
|
This repository contains code, related and useful for performing technical coordination tasks -- collecting informational (technology, start date, current status, etc.) and statistical (unit tests count, unit tests coverage, build time, etc.) information about projects.
|
8
8
|
|
9
|
-
`
|
9
|
+
`techcor` console tools allows to manage mentioned above information (add projects, edit metrics, etc.). Information itself is stored in `mongodb`. `techcor` tool can be used in CI environments to automatically collect metrics (like coverage and build time).
|
10
10
|
|
11
|
-
In future, it is planned to have web interface for doing same operation as with cli `
|
11
|
+
In future, it is planned to have web interface for doing same operation as with cli `techcor` tool. For now, use `techcor --help` to get information about supported operations and commands.
|
12
12
|
|
13
13
|
Examples:
|
14
14
|
|
15
15
|
* Add new project
|
16
16
|
|
17
|
-
|
17
|
+
techcor add project_name
|
18
18
|
|
19
19
|
* Add new metric
|
20
20
|
|
21
|
-
|
21
|
+
techcor add_metric --mt number --pn project_name metric_name
|
22
22
|
|
23
23
|
* List unit tests count for all ruby projects
|
24
24
|
|
25
|
-
|
25
|
+
techcor list --fm "{'Name' => 'name', 'Unit tests' => 'property(\"unit tests count\").value'}" "property('technology') == 'ruby'"
|
26
26
|
|
27
27
|
Code is not released as a separate gem, but will be in a nearest future.
|
data/Rakefile
CHANGED
@@ -21,18 +21,18 @@ task :default do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
require 'jeweler'
|
24
|
-
require_relative 'lib/
|
24
|
+
require_relative 'lib/techcor/version'
|
25
25
|
Jeweler::Tasks.new do |gem|
|
26
26
|
gem.name = "techcor"
|
27
|
-
gem.homepage = "http://github.com/maksar/
|
27
|
+
gem.homepage = "http://github.com/maksar/techcor"
|
28
28
|
gem.license = "MIT"
|
29
29
|
gem.summary = %Q{Console tool allowing to perform technical coordination activities}
|
30
|
-
gem.description = %Q{This gem provides '
|
30
|
+
gem.description = %Q{This gem provides 'techcor' console utility, which allows to collect and manage different metrics on software projects.}
|
31
31
|
gem.email = "Maksar.mail@gmail.com"
|
32
32
|
gem.authors = ["Alexander Shestakov"]
|
33
33
|
|
34
|
-
gem.executables = %w(
|
35
|
-
gem.version =
|
34
|
+
gem.executables = %w(techcor)
|
35
|
+
gem.version = Techcor::Version::STRING
|
36
36
|
|
37
37
|
gem.files.exclude '.*'
|
38
38
|
gem.files.exclude '*.gemspec'
|
data/db/seed.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
ENV['RACK_ENV'] ||= 'development'
|
2
2
|
|
3
|
-
require_relative '../lib/
|
3
|
+
require_relative '../lib/techcor'
|
4
4
|
|
5
5
|
def seed
|
6
6
|
Project.delete_all
|
@@ -12,8 +12,8 @@ def seed
|
|
12
12
|
Project.new(name: 'TC').
|
13
13
|
add_metric(StringMetric.new(name: 'Technology').edit('Ruby', user)).
|
14
14
|
add_metric(BooleanMetric.new(name: 'Active').edit(true, user)).
|
15
|
-
add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/
|
16
|
-
add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/
|
15
|
+
add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/techcor', user)).
|
16
|
+
add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/techcor', user)).
|
17
17
|
add_metric(NumberMetric.new(name: 'Unit Tests Coverage').edit(98.55, user)).
|
18
18
|
add_metric(NumberMetric.new(name: 'Unit Tests Count').edit(40, user)).
|
19
19
|
add_metric(NumberMetric.new(name: 'Cucumber Tests Coverage').edit(92.68, user)).
|
@@ -8,18 +8,18 @@ Feature: Describing project
|
|
8
8
|
When I execute cli "describe --df ---- TC"
|
9
9
|
Then the cli output should contain:
|
10
10
|
"""
|
11
|
-
|
12
|
-
| Metric | Value
|
13
|
-
|
14
|
-
| Technology | Ruby
|
15
|
-
| Active | true
|
16
|
-
| SCM | http://github.com/maksar/
|
17
|
-
| CI | http://travis-ci.org/#!/maksar/
|
18
|
-
| Unit Tests Coverage | 100.0
|
19
|
-
| Unit Tests Count | 100.0
|
20
|
-
| Cucumber Tests Coverage | 92.68
|
21
|
-
| Cucumber Tests Count | 10.0
|
22
|
-
| Tests Coverage | 100.0
|
23
|
-
|
11
|
+
+-------------------------+----------------------------------------+------------+-------------+
|
12
|
+
| Metric | Value | Changed at | Changed by |
|
13
|
+
+-------------------------+----------------------------------------+------------+-------------+
|
14
|
+
| Technology | Ruby | ---- | a.shestakov |
|
15
|
+
| Active | true | ---- | a.shestakov |
|
16
|
+
| SCM | http://github.com/maksar/techcor | ---- | a.shestakov |
|
17
|
+
| CI | http://travis-ci.org/#!/maksar/techcor | ---- | a.shestakov |
|
18
|
+
| Unit Tests Coverage | 100.0 | ---- | a.shestakov |
|
19
|
+
| Unit Tests Count | 100.0 | ---- | a.shestakov |
|
20
|
+
| Cucumber Tests Coverage | 92.68 | ---- | a.shestakov |
|
21
|
+
| Cucumber Tests Count | 10.0 | ---- | a.shestakov |
|
22
|
+
| Tests Coverage | 100.0 | ---- | a.shestakov |
|
23
|
+
+-------------------------+----------------------------------------+------------+-------------+
|
24
24
|
9 rows in set
|
25
25
|
"""
|
@@ -63,7 +63,7 @@ Feature: Listing projects in console
|
|
63
63
|
| Name | Technology | Active | SCM | CI | Unit Tests Coverage | Unit Tests Count | Tests Coverage | Cucumber Tests Coverage | Cucumber Tests Count |
|
64
64
|
+----------+------------+--------+-----------------------------------+-----------------------------------------+---------------------+------------------+----------------+-------------------------+----------------------+
|
65
65
|
| Anagrams | Ruby | false | http://github.com/maksar/anagrams | http://travis-ci.org/#!/maksar/anagrams | 100.0 | 6.0 | 100.0 | | |
|
66
|
-
| TC | Ruby | true | http://github.com/maksar/
|
66
|
+
| TC | Ruby | true | http://github.com/maksar/techcor | http://travis-ci.org/#!/maksar/techcor | 100.0 | 100.0 | 100.0 | 92.68 | 10.0 |
|
67
67
|
+----------+------------+--------+-----------------------------------+-----------------------------------------+---------------------+------------------+----------------+-------------------------+----------------------+
|
68
68
|
2 rows in set
|
69
69
|
"""
|
@@ -29,23 +29,23 @@ Feature: Property history
|
|
29
29
|
When I execute cli "history --pn TC --df ----"
|
30
30
|
Then the cli output should contain:
|
31
31
|
"""
|
32
|
-
|
33
|
-
| Date | Technology | Active | SCM
|
34
|
-
|
35
|
-
| ---- | Ruby | |
|
36
|
-
| ---- | | true |
|
37
|
-
| ---- | | | http://github.com/maksar/
|
38
|
-
| ---- | | |
|
39
|
-
| ---- | | |
|
40
|
-
| ---- | | |
|
41
|
-
| ---- | | |
|
42
|
-
| ---- | | |
|
43
|
-
| ---- | | |
|
44
|
-
| ---- | | |
|
45
|
-
| ---- | | |
|
46
|
-
| ---- | | |
|
47
|
-
| ---- | | |
|
48
|
-
| ---- | | |
|
49
|
-
|
32
|
+
+------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
|
33
|
+
| Date | Technology | Active | SCM | CI | Unit Tests Coverage | Unit Tests Count | Cucumber Tests Coverage | Cucumber Tests Count | Tests Coverage |
|
34
|
+
+------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
|
35
|
+
| ---- | Ruby | | | | | | | | |
|
36
|
+
| ---- | | true | | | | | | | |
|
37
|
+
| ---- | | | http://github.com/maksar/techcor | | | | | | |
|
38
|
+
| ---- | | | | http://travis-ci.org/#!/maksar/techcor | | | | | |
|
39
|
+
| ---- | | | | | 98.55 | | | | |
|
40
|
+
| ---- | | | | | 99.0 | | | | |
|
41
|
+
| ---- | | | | | 100.0 | | | | |
|
42
|
+
| ---- | | | | | | 40.0 | | | |
|
43
|
+
| ---- | | | | | | 45.0 | | | |
|
44
|
+
| ---- | | | | | | 60.0 | | | |
|
45
|
+
| ---- | | | | | | 100.0 | | | |
|
46
|
+
| ---- | | | | | | | 92.68 | | |
|
47
|
+
| ---- | | | | | | | | 10.0 | |
|
48
|
+
| ---- | | | | | | | | | 100.0 |
|
49
|
+
+------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
|
50
50
|
14 rows in set
|
51
51
|
"""
|
data/features/support/env.rb
CHANGED
data/lib/commands/gli/add.rb
CHANGED
data/lib/commands/gli/history.rb
CHANGED
data/lib/commands/gli/hooks.rb
CHANGED
data/lib/commands/gli/list.rb
CHANGED
data/lib/commands/gli/program.rb
CHANGED
data/lib/gli_interface.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: techcor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -203,11 +203,11 @@ dependencies:
|
|
203
203
|
- - ~>
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: 2.0.0.rc
|
206
|
-
description: This gem provides '
|
207
|
-
different metrics on software projects.
|
206
|
+
description: This gem provides 'techcor' console utility, which allows to collect
|
207
|
+
and manage different metrics on software projects.
|
208
208
|
email: Maksar.mail@gmail.com
|
209
209
|
executables:
|
210
|
-
-
|
210
|
+
- techcor
|
211
211
|
extensions: []
|
212
212
|
extra_rdoc_files:
|
213
213
|
- README.md
|
@@ -216,7 +216,6 @@ files:
|
|
216
216
|
- Gemfile.lock
|
217
217
|
- README.md
|
218
218
|
- Rakefile
|
219
|
-
- bin/tc
|
220
219
|
- config/cucumber.yml
|
221
220
|
- config/mongoid.yml
|
222
221
|
- config/mongoid.yml.sample
|
@@ -262,8 +261,8 @@ files:
|
|
262
261
|
- lib/storage/metric_mongo.rb
|
263
262
|
- lib/storage/project_mongo.rb
|
264
263
|
- lib/storage/property_value_mongo.rb
|
265
|
-
- lib/
|
266
|
-
- lib/
|
264
|
+
- lib/techcor.rb
|
265
|
+
- lib/techcor/version.rb
|
267
266
|
- spec/integration/mongo_spec.rb
|
268
267
|
- spec/lib/commands/add_metric_spec.rb
|
269
268
|
- spec/lib/commands/add_project_spec.rb
|
@@ -282,7 +281,8 @@ files:
|
|
282
281
|
- spec/lib/storage/project_mongo_spec.rb
|
283
282
|
- spec/lib/storage/property_value_mongo_spec.rb
|
284
283
|
- spec/spec_helper.rb
|
285
|
-
|
284
|
+
- bin/techcor
|
285
|
+
homepage: http://github.com/maksar/techcor
|
286
286
|
licenses:
|
287
287
|
- MIT
|
288
288
|
post_install_message:
|
@@ -297,7 +297,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
297
297
|
version: '0'
|
298
298
|
segments:
|
299
299
|
- 0
|
300
|
-
hash:
|
300
|
+
hash: 3996826411371425681
|
301
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
302
|
none: false
|
303
303
|
requirements:
|
/data/bin/{tc → techcor}
RENAMED
File without changes
|
/data/lib/{tc.rb → techcor.rb}
RENAMED
File without changes
|