Sha256: 1d7df5fb2c12dd864363e4dc2012afbfc7d0383914a16230942209d6343c303c
Contents?: true
Size: 1.91 KB
Versions: 3
Compression:
Stored size: 1.91 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'test_helper' class AgentSetupInitTest < Minitest::Test def test_status_gem output = `./exe/appmap-agent-status` assert_equal 0, $CHILD_STATUS.exitstatus expected = { test_commands: [], properties: { config: { app: 'AppMap Rubygem', present: true, valid: true }, project: { agentVersion: AppMap::VERSION, language: 'ruby', remoteRecordingCapable: false, integrationTests: false } } } assert_equal JSON.pretty_generate(expected), output.strip end def test_status_rails_app output = `cd spec/fixtures/rails6_users_app && bundle exec ../../../exe/appmap-agent-status` assert_equal 0, $CHILD_STATUS.exitstatus expected = { test_commands: [ { framework: :rspec, command: { program: 'bundle', args: %w[exec rspec ./spec/controllers], environment: { APPMAP: 'true' } } }, { framework: :minitest, command: { program: 'bundle', args: %w[exec ruby ./test/controllers], environment: { APPMAP: 'true' } } }, { framework: :minitest, command: { program: 'bundle', args: %w[exec ruby ./test/integration], environment: { APPMAP: 'true' } } } ], properties: { config: { app: nil, present: true, valid: false }, project: { agentVersion: AppMap::VERSION, language: 'ruby', remoteRecordingCapable: false, integrationTests: true } } } assert_equal JSON.pretty_generate(expected), output.strip end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appmap-0.59.2 | test/agent_setup_status_test.rb |
appmap-0.59.1 | test/agent_setup_status_test.rb |
appmap-0.59.0 | test/agent_setup_status_test.rb |