Skip to content

Commit 253e85f

Browse files
committed
tests modifications
1 parent 130e0e8 commit 253e85f

5 files changed

Lines changed: 69 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
</p>
66

77
<p align="center">
8-
<img src="https://img.shields.io/badge/tests-52%2F52%20passing-2E8B57?style=for-the-badge" alt="Tests Passing">
8+
<img src="https://img.shields.io/badge/version-2.0.0-1F6FEB?style=for-the-badge" alt="Version 2.0.0">
9+
<img src="https://img.shields.io/badge/tests-241%20examples%20passing-2E8B57?style=for-the-badge" alt="Tests Passing">
910
<img src="https://img.shields.io/badge/verify-bundle%20exec%20rake%20passing-2E8B57?style=for-the-badge" alt="Rake Verify Passing">
1011
<br>
1112
<img src="https://img.shields.io/badge/status-stable-4C956C?style=for-the-badge" alt="Status Stable">
13+
<img src="https://img.shields.io/badge/version%20check-rake%20test%3Aversion%20passing-1D8348?style=for-the-badge" alt="Version Check Passing">
1214
<img src="https://img.shields.io/badge/license-Proprietary-8B0000?style=for-the-badge" alt="License">
1315
<br>
1416
<a href="https://github.com/voltsparx/ASRFacet-Rb/actions/workflows/ci.yml"><img src="https://github.com/voltsparx/ASRFacet-Rb/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
@@ -272,9 +274,10 @@ bundle exec rake test:website_installers
272274

273275
Verification snapshot:
274276

275-
- Date: `2026-04-09`
277+
- Date: `2026-04-27`
276278
- Result: `241 examples, 0 failures`
277279
- Full verify gate: `bundle exec rake` passed
280+
- Version alignment gate: `bundle exec rake test:version` passed for `2.0.0`
278281

279282
## Troubleshooting Guide
280283

Rakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ namespace :test do
3535
desc "Run the RSpec suite"
3636
task spec: :spec
3737

38+
desc "Verify version alignment across runtime, docs, and packaged assets"
39+
task :version do
40+
ruby_exec(File.join("test", "smoke_version.rb"))
41+
end
42+
3843
desc "Run CLI smoke tests"
3944
task :cli do
4045
ruby_exec(File.join("test", "smoke_cli.rb"))
@@ -81,6 +86,6 @@ namespace :build do
8186
end
8287

8388
desc "Run the full release verification pass"
84-
task verify: ["test:spec", "test:cli", "test:web", "test:lab", "test:deploy", "test:install", "test:website_installers", "build:gem"]
89+
task verify: ["test:spec", "test:version", "test:cli", "test:web", "test:lab", "test:deploy", "test:install", "test:website_installers", "build:gem"]
8590

8691
task default: :verify

test/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ having to remember a long set of manual commands.
1616
## Targeted checks
1717

1818
- `bundle exec rake spec`: run the RSpec suite
19+
- `bundle exec rake test:version`: verify that the project version is aligned across code, CLI, docs, and packaged assets
1920
- `bundle exec rake test:cli`: verify CLI entrypoints
2021
- `bundle exec rake test:web`: verify web-session startup and routes
2122
- `bundle exec rake test:lab`: verify the local validation lab
@@ -30,5 +31,5 @@ README verification notes.
3031
Latest verified repository result:
3132

3233
- `bundle exec rake` passed
33-
- `52 examples, 0 failures`
34-
- CLI, web-session, lab, installer, website-installer, and gem-build smoke checks all passed
34+
- `241 examples, 0 failures`
35+
- Version, CLI, web-session, lab, installer, website-installer, and gem-build smoke checks all passed

test/run_all.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
include ASRFacet::TestSupport
1717

1818
scripts = %w[
19+
smoke_version.rb
1920
smoke_cli.rb
2021
smoke_web.rb
2122
smoke_lab.rb

test/smoke_version.rb

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# frozen_string_literal: true
2+
# SPDX-License-Identifier: Proprietary
3+
#
4+
# ASRFacet-Rb: Attack Surface Reconnaissance Framework
5+
# Copyright (c) 2026 voltsparx
6+
#
7+
# Author: voltsparx
8+
# Repository: https://github.com/voltsparx/ASRFacet-Rb
9+
# Contact: voltsparx@gmail.com
10+
# License: See LICENSE file in the project root
11+
#
12+
# This file is part of ASRFacet-Rb and is subject to the terms
13+
# and conditions defined in the LICENSE file.
14+
15+
require "json"
16+
require_relative "support/smoke_helper"
17+
18+
include ASRFacet::TestSupport
19+
20+
announce("Version alignment verification started.")
21+
22+
expected = expected_version
23+
24+
version_file = File.read(File.join(ROOT, "VERSION")).strip
25+
assert(version_file == expected, "VERSION file reported #{version_file.inspect}, expected #{expected.inspect}.")
26+
27+
cli_version = run_command(*ruby_command("bin/asrfacet-rb", "--version")).strip
28+
assert(cli_version == expected, "CLI reported #{cli_version.inspect}, expected #{expected.inspect}.")
29+
30+
package_json_path = File.join(ROOT, "lib", "asrfacet_rb", "output", "js", "package.json")
31+
package_json = JSON.parse(File.read(package_json_path))
32+
package_version = package_json.fetch("version", "").to_s.strip
33+
assert(package_version == expected, "JS output package reported #{package_version.inspect}, expected #{expected.inspect}.")
34+
35+
changelog = File.read(File.join(ROOT, "CHANGELOG.md"))
36+
assert(changelog.include?("## [#{expected}]"), "CHANGELOG.md does not contain a release section for #{expected}.")
37+
38+
website_pages = %w[
39+
docs/website/index.html
40+
docs/website/cli-reference.html
41+
docs/website/getting-started.html
42+
docs/website/modes.html
43+
docs/website/workflow.html
44+
docs/website/reporting.html
45+
docs/website/project.html
46+
docs/website/development.html
47+
]
48+
49+
website_pages.each do |relative_path|
50+
content = File.read(File.join(ROOT, relative_path))
51+
assert(content.include?("v#{expected}"), "#{relative_path} is missing the v#{expected} site marker.")
52+
end
53+
54+
announce("Version alignment verification passed.")

0 commit comments

Comments
 (0)