Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed May 28, 2021
1 parent 30f4293 commit 7290e22
Show file tree
Hide file tree
Showing 15 changed files with 12,323 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run lint
run: bundle exec rubocop
- name: Run lint
run: bundle exec rubocop
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ GEM
github-markup (4.0.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
minitest (5.14.4)
minitest-skip (0.0.3)
minitest (~> 5.0)
paint (2.2.1)
parallel (1.20.1)
parser (3.0.1.0)
ast (~> 2.4.1)
rainbow (3.0.0)
rake (13.0.3)
redcarpet (3.5.1)
regexp_parser (2.1.1)
rexml (3.2.5)
Expand Down Expand Up @@ -49,6 +53,9 @@ DEPENDENCIES
bundler (>= 2.1.0, < 2.3)
commonmarker (~> 0.21)
github-markup (~> 4.0)
minitest (~> 5.12)
minitest-skip (~> 0.0)
rake (~> 13.0)
redcarpet (~> 3.5)
rubocop (~> 1.10)
tls-map!
Expand Down
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/test_*.rb']
end

desc 'Run tests'
task default: :test
8 changes: 7 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog

## [Unreleased]

## [1.2.0]
Expand All @@ -10,7 +12,11 @@ Additions:

Documentation:

- change yard doc format from rdoc to markdown
- Change yard doc format from rdoc to markdown

Quality:

- Create unit tests

## [1.1.0]

Expand Down
12 changes: 12 additions & 0 deletions docs/pages/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ On new release don't forget to rebuild the library documentation:
$ bundle exec yard doc
```

And to be sure all tests pass!

```plaintext
$ rake test
```

## On BlackArch

BA process
Expand All @@ -25,3 +31,9 @@ On new release don't forget to rebuild the library documentation:
```plaintext
$ bundle exec yard doc
```

And to be sure all tests pass!

```plaintext
$ rake test
```
Loading

0 comments on commit 7290e22

Please sign in to comment.