testcube 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/testcube/adapters/base_adapter.rb +34 -0
- data/lib/testcube/adapters/rspec_adapter.rb +38 -0
- data/lib/testcube/build_env.rb +45 -0
- data/lib/testcube/config/env.rb +20 -0
- data/lib/testcube/report.rb +48 -0
- data/lib/testcube/tracker.rb +68 -0
- data/lib/testcube/version.rb +3 -0
- data/lib/testcube.rb +25 -0
- data/testcube.gemspec +39 -0
- metadata +120 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c4efe39bf13999143ee88fc92aba4315b915fc94
|
4
|
+
data.tar.gz: f9b8b4e2ab3845492326ed4ab0b5fad21b9389c5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 035f9bfddbda70489f9745b1348a3a3896c493ec113d39860e52edd86a0784fbe97731d3ce368bfd3ddceb668d4b9d608f7a7f8fb5ad219f5976ccc608807869
|
7
|
+
data.tar.gz: 4dd9dbd36fac7873e756401d863468fc219620e742f62449ae661efe5e6a52875d4155308764fb23a84d93e16f1664a35d3db0b6ba038ad2c9fe440168f8a455
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ankur@flexport.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
testcube (0.1.0)
|
5
|
+
httprb
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.3)
|
11
|
+
httprb (0.1.5)
|
12
|
+
rake (10.5.0)
|
13
|
+
rspec (3.8.0)
|
14
|
+
rspec-core (~> 3.8.0)
|
15
|
+
rspec-expectations (~> 3.8.0)
|
16
|
+
rspec-mocks (~> 3.8.0)
|
17
|
+
rspec-core (3.8.0)
|
18
|
+
rspec-support (~> 3.8.0)
|
19
|
+
rspec-expectations (3.8.2)
|
20
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
21
|
+
rspec-support (~> 3.8.0)
|
22
|
+
rspec-mocks (3.8.0)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.8.0)
|
25
|
+
rspec-support (3.8.0)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
bundler (~> 1.16)
|
32
|
+
rake (~> 10.0)
|
33
|
+
rspec (~> 3.0)
|
34
|
+
testcube!
|
35
|
+
|
36
|
+
BUNDLED WITH
|
37
|
+
1.17.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Ankur
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Testcube
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/testcube`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'testcube'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install testcube
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/testcube. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the Testcube project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/testcube/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "testcube"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
module Testcube
|
2
|
+
module Adapters
|
3
|
+
class BaseAdapter
|
4
|
+
attr_accessor :api_key
|
5
|
+
|
6
|
+
def self.bind(api_key)
|
7
|
+
adapter = new
|
8
|
+
adapter.api_key = api_key
|
9
|
+
if api_key
|
10
|
+
adapter.bind
|
11
|
+
else
|
12
|
+
Testcube.logger.warn('No api key specified. Not recording!')
|
13
|
+
end
|
14
|
+
adapter
|
15
|
+
end
|
16
|
+
|
17
|
+
def bind
|
18
|
+
if Testcube::Config::Env.recording_enabled?
|
19
|
+
Testcube.logger.info('Test suite time execution recording enabled.')
|
20
|
+
bind_time_tracker
|
21
|
+
bind_save_report
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def bind_time_tracker
|
26
|
+
raise NotImplementedError
|
27
|
+
end
|
28
|
+
|
29
|
+
def bind_save_report
|
30
|
+
raise NotImplementedError
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require_relative "base_adapter"
|
2
|
+
require_relative "../report"
|
3
|
+
|
4
|
+
module Testcube
|
5
|
+
module Adapters
|
6
|
+
class RSpecAdapter < BaseAdapter
|
7
|
+
def bind_time_tracker
|
8
|
+
# TODO: we need to filter testcube from rspec backtraces
|
9
|
+
::RSpec.configure do |config|
|
10
|
+
config.around(:each) do |example|
|
11
|
+
Testcube.tracker.current_test_path = example.metadata[:file_path]
|
12
|
+
Testcube.tracker.current_line_number = example.metadata[:line_number]
|
13
|
+
Testcube.tracker.start_timer
|
14
|
+
|
15
|
+
example.run
|
16
|
+
|
17
|
+
Testcube.tracker.current_exception = example.exception
|
18
|
+
Testcube.tracker.stop_timer
|
19
|
+
end
|
20
|
+
|
21
|
+
config.after(:suite) do
|
22
|
+
Testcube.logger.debug("Total time: #{Testcube.tracker.total_time.round(2)}s")
|
23
|
+
Testcube.logger.debug("Saw #{Testcube.tracker.num_specs} specs")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def bind_save_report
|
29
|
+
adapter = self
|
30
|
+
::RSpec.configure do |config|
|
31
|
+
config.after(:suite) do
|
32
|
+
Testcube::Report.save(adapter.api_key)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Testcube
|
2
|
+
class BuildEnv
|
3
|
+
def self.current
|
4
|
+
sha, author, author_email, commit_message = git_show
|
5
|
+
# TODO master fork sha
|
6
|
+
# TODO could also get some of this data from github api
|
7
|
+
{
|
8
|
+
sha: sha,
|
9
|
+
author: author,
|
10
|
+
author_email: author_email,
|
11
|
+
commit_message: commit_message,
|
12
|
+
branch: branch,
|
13
|
+
build_url: build_url,
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
# TODO: Add support for other CI systems
|
18
|
+
def self.branch
|
19
|
+
ENV['BUILDKITE_BRANCH'] || git('rev-parse --abbrev-ref HEAD')
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.build_url
|
23
|
+
ENV['BUILDKITE_BUILD_URL']
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.git_show
|
27
|
+
out = git('show --format=short --no-patch')
|
28
|
+
return [nil, nil, nil, nil] if !out
|
29
|
+
|
30
|
+
# TODO: dont rescue nil
|
31
|
+
sha = out.match(/commit ([0-9a-f]+)\n/)[1] rescue nil
|
32
|
+
author = out.match(/Author: (.*?) <(.*)>\n/)[1] rescue nil
|
33
|
+
author_email = out.match(/Author: (.*?) <(.*)>\n/)[2] rescue nil
|
34
|
+
message = out.lines[2..(out.lines.length)].find { |l| l.strip.length > 0 }.strip rescue nil
|
35
|
+
|
36
|
+
return [sha, author, author_email, message]
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.git(cmd)
|
40
|
+
`git #{cmd}`.strip
|
41
|
+
rescue Errno::ENOENT
|
42
|
+
nil
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Testcube
|
2
|
+
module Config
|
3
|
+
class Env
|
4
|
+
class << self
|
5
|
+
# TODO Read from ENV vars here
|
6
|
+
def recording_enabled?
|
7
|
+
true
|
8
|
+
end
|
9
|
+
|
10
|
+
def log_level
|
11
|
+
{
|
12
|
+
"debug" => ::Logger::DEBUG,
|
13
|
+
"info" => ::Logger::INFO,
|
14
|
+
"warn" => ::Logger::WARN,
|
15
|
+
}[ENV['TESTCUBE_LOG_LEVEL']] || ::Logger::INFO
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require "json"
|
2
|
+
require "http"
|
3
|
+
require_relative "build_env"
|
4
|
+
|
5
|
+
module Testcube
|
6
|
+
class Report
|
7
|
+
UPLOAD_START_URL = "https://us-central1-testcube.cloudfunctions.net/startUpload"
|
8
|
+
def self.save(api_key)
|
9
|
+
test_files = Testcube.tracker.test_files_with_time
|
10
|
+
|
11
|
+
if test_files.empty?
|
12
|
+
Testcube.logger.warn("No test files were executed")
|
13
|
+
end
|
14
|
+
|
15
|
+
upload_results(test_files, Testcube::BuildEnv.current, api_key)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.upload_results(test_files, build_env, api_key)
|
19
|
+
content = JSON.generate({ results: test_files, build_env: build_env })
|
20
|
+
|
21
|
+
# get upload url
|
22
|
+
start = Time.now
|
23
|
+
res = HTTP.post(UPLOAD_START_URL, headers: { 'X-TESTCUBE-API-KEY' => api_key })
|
24
|
+
Testcube.logger.debug("uploadStart: #{Time.now - start}")
|
25
|
+
|
26
|
+
upload_url = nil
|
27
|
+
if res.status.success?
|
28
|
+
upload_url = JSON.parse(res.body.to_s)['uploadURL']
|
29
|
+
else
|
30
|
+
Testcube.logger.warn("Failed to upload to testcube!")
|
31
|
+
return
|
32
|
+
end
|
33
|
+
|
34
|
+
start = Time.now
|
35
|
+
res = HTTP.put(upload_url, body: content)
|
36
|
+
Testcube.logger.debug("resultsUpload: #{Time.now - start}")
|
37
|
+
|
38
|
+
if res.status.success?
|
39
|
+
Testcube.logger.info("Successfully uploaded results!")
|
40
|
+
else
|
41
|
+
Testcube.logger.warn("Failed to upload to testcube!")
|
42
|
+
return
|
43
|
+
end
|
44
|
+
|
45
|
+
Testcube.logger.info("#{res.status}, #{res.code}, #{res.body}")
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'singleton'
|
2
|
+
|
3
|
+
module Testcube
|
4
|
+
class Tracker
|
5
|
+
include Singleton
|
6
|
+
|
7
|
+
attr_reader :test_files_with_time
|
8
|
+
attr_writer :current_test_path, :current_line_number, :current_exception
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
set_defaults
|
12
|
+
end
|
13
|
+
|
14
|
+
def start_timer
|
15
|
+
@start_time = now_without_mock_time.to_f
|
16
|
+
end
|
17
|
+
|
18
|
+
def stop_timer
|
19
|
+
execution_time = @start_time ? now_without_mock_time.to_f - @start_time : 0.0
|
20
|
+
@test_files_with_time.push({
|
21
|
+
test_file: current_test_path,
|
22
|
+
line_number: current_line_number,
|
23
|
+
status: current_exception ? :fail : :pass,
|
24
|
+
# TODO: we could have a better way to filter the backtrace
|
25
|
+
backtrace: current_exception ? current_exception.backtrace.select { |s| s !~ /gems\/.*(rspec|bin)/ } : nil,
|
26
|
+
execution_time: execution_time
|
27
|
+
})
|
28
|
+
end
|
29
|
+
|
30
|
+
def current_test_path
|
31
|
+
raise("current_test_path needs to be set") unless @current_test_path
|
32
|
+
@current_test_path.sub(/^\.\//, '')
|
33
|
+
end
|
34
|
+
|
35
|
+
def current_line_number
|
36
|
+
raise("current_line_number needs to be set") unless @current_line_number
|
37
|
+
@current_line_number
|
38
|
+
end
|
39
|
+
|
40
|
+
def current_exception
|
41
|
+
# can be nil
|
42
|
+
@current_exception
|
43
|
+
end
|
44
|
+
|
45
|
+
def total_time
|
46
|
+
test_files_with_time.map { |res| res[:execution_time] }.sum
|
47
|
+
end
|
48
|
+
|
49
|
+
def num_specs
|
50
|
+
test_files_with_time.length
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def set_defaults
|
56
|
+
@global_time = 0
|
57
|
+
@test_files_with_time = []
|
58
|
+
end
|
59
|
+
|
60
|
+
def now_without_mock_time
|
61
|
+
if defined?(Timecop)
|
62
|
+
Time.now_without_mock_time
|
63
|
+
else
|
64
|
+
Time.now
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
data/lib/testcube.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require "logger"
|
2
|
+
require "testcube/version"
|
3
|
+
require_relative "testcube/adapters/rspec_adapter"
|
4
|
+
require_relative "testcube/config/env"
|
5
|
+
require_relative "testcube/tracker"
|
6
|
+
|
7
|
+
module Testcube
|
8
|
+
class << self
|
9
|
+
def logger
|
10
|
+
unless @logger
|
11
|
+
default_logger = ::Logger.new(STDOUT)
|
12
|
+
default_logger.level = Testcube::Config::Env.log_level
|
13
|
+
default_logger.formatter = proc do |severity, datetime, progname, msg|
|
14
|
+
"[Testcube] #{severity} #{datetime.strftime("%H:%M:%S")}: #{msg}\n"
|
15
|
+
end
|
16
|
+
@logger = default_logger
|
17
|
+
end
|
18
|
+
@logger
|
19
|
+
end
|
20
|
+
|
21
|
+
def tracker
|
22
|
+
Testcube::Tracker.instance
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/testcube.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "testcube/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "testcube"
|
8
|
+
spec.version = Testcube::VERSION
|
9
|
+
spec.authors = ["Ankur"]
|
10
|
+
spec.email = ["ankurdahiya90@gmail.com"]
|
11
|
+
|
12
|
+
# TODO: Update these
|
13
|
+
spec.summary = "summary"
|
14
|
+
spec.description = "description"
|
15
|
+
spec.homepage = "https://testcube.io"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
+
#if spec.respond_to?(:metadata)
|
21
|
+
#spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
22
|
+
#else
|
23
|
+
#raise "RubyGems 2.0 or newer is required to protect against " \
|
24
|
+
#"public gem pushes."
|
25
|
+
#end
|
26
|
+
|
27
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
f.match(%r{^(test|spec|features)/})
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_dependency "http"
|
35
|
+
|
36
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
37
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
38
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: testcube
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ankur
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-12-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: http
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: description
|
70
|
+
email:
|
71
|
+
- ankurdahiya90@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- Gemfile.lock
|
82
|
+
- LICENSE.txt
|
83
|
+
- README.md
|
84
|
+
- Rakefile
|
85
|
+
- bin/console
|
86
|
+
- bin/setup
|
87
|
+
- lib/testcube.rb
|
88
|
+
- lib/testcube/adapters/base_adapter.rb
|
89
|
+
- lib/testcube/adapters/rspec_adapter.rb
|
90
|
+
- lib/testcube/build_env.rb
|
91
|
+
- lib/testcube/config/env.rb
|
92
|
+
- lib/testcube/report.rb
|
93
|
+
- lib/testcube/tracker.rb
|
94
|
+
- lib/testcube/version.rb
|
95
|
+
- testcube.gemspec
|
96
|
+
homepage: https://testcube.io
|
97
|
+
licenses:
|
98
|
+
- MIT
|
99
|
+
metadata: {}
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubyforge_project:
|
116
|
+
rubygems_version: 2.6.8
|
117
|
+
signing_key:
|
118
|
+
specification_version: 4
|
119
|
+
summary: summary
|
120
|
+
test_files: []
|