Sha256: a8972503831ef3b75651ceccff3966e755c15c97e69420232eeab791bbfdc6a6

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

# Test helper file for non-core plugins

# This file's job is to collect any libraries needed for testing, as well as provide
# any utilities to make testing a plugin easier.

# InSpec core provides a number of such libraries and facilities, in the file
# lib/plugins/shared/core_plugin_test_helper.rb . So, one job in this file is
# to locate and load that file.
require 'inspec/../plugins/shared/core_plugin_test_helper'

# Also load the InSpec plugin system. We need this so we can unit-test the plugin
# classes, which will rely on the plugin system.
require 'inspec/plugin/v2'

# Caution: loading all of InSpec (i.e. require 'inspec') may cause interference with
# minitest/spec; one symptom would be appearing to have no tests.
# See https://github.com/inspec/inspec/issues/3380

# You can select from a number of test harnesses.  Since InSpec uses Spec-style controls
# in profile code, you will probably want to use something like minitest/spec, which provides
# Spec-style tests.
require 'minitest/autorun' # loads all styles and runs tests automatically

# You might want to put some debugging tools here.  We run tests to find bugs, after all.

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
inspec-4.18.51 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.18.39 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.18.38 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.18.24 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.18.0 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.17.17 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.17.15 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.17.14 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.17.11 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.17.7 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.16.0 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.12.0 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.10.4 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.7.24 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.7.18 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.7.3 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.6.9 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.6.4 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb
inspec-4.6.3 lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb