RSpec Results

 

 

BuildMaster::Algorithms::NegativeIndexArray
index with negative number
default value
BuildMaster::Algorithms::OpnCompare O(pn) Compare Algorithm
no diff
one character change
BuildMaster::Classpath
sholud be empty when created
should collect entries by converting to ClasspathEntry
should collect classpath entries directly
should generate path content only when id is nil
should generate path definition part of ANT build file
should support adding all jars in the directory
should support adding another classpath
should allow string for path when root is set
BuildMaster::Git
should take a directory as the working directory
should change directory and run command
should issue proper commands
BuildMaster::Java
should get version
BuildMaster::JavacAnt
should compile with library
should copy all resources that are not in src
BuildMaster::JavaProject
should take path as well as directory
should allow setting of the classpath
should allow setting of the test classpath
should let user specify directory to add all jars in
should let user specify directory to add all test related jars
should construct junit task
BuildMaster::JavaProject
should be able to make
should compile test as well
should be able to generate classpath element for ANT build file
should copy resources
should package project with classes and source
BuildMaster::JUnitAnt
should create ANT build file, and jvmargs
should create with classpath
should create with batch test set up
should create tasks for cobertura
BuildMaster::PackageAnt
should create ant file
BuildMaster::RubyPlatform
should detect current OS
BuildMaster::Common::Properties
parse io into hash
BuildMaster::TreeToObject
should_populate_string_fields
should_populate_array_fields
should_populate_instance_fields
should_raise_error_if_property_not_found
should_raise_error_if_sub_property_not_found
should_raise_error_if_array_property_not_found
empty_content
BuildMaster::CommandInterface
delegate output to io
prompt outputs a message and get the response from io
prompt for choice
prompt for choice returns nil for invalid choice
BuildMaster::CommandRunner
return content
raise error on abnormal exits
take closure as io processor
BuildMaster::Cotta
shell out command to system
instantiate dir from cotta
instantiate file from cotta
entry creates file or directory based on which one exists
nil in, nil out
create parent directory directly from __FILE__
BuildMaster::InMemorySystem with Cotta Dir
load dir with basic information
should show path on to_s for convenience in scripting
dir objects are value objects, equal on system and path
dir should not be equal if path different
should support relative path
should know its parent
should look up parent
should return nil if parent lookup fails
should raise error if not exits stat
support stat
dir should handle root dir
dir should handle root dir for drive letters
dir should return sub directory
dir should return a directory from a relative pathname
should get file in current directory
should create dir and its parent
should delete dir and its children
should do nothing if dir does not exist
should do nothing on mkdir if dir already exists
should list dirs
should move directory with its children
should copy directory with its children
dir takes relative path
list on not existing directory
allow filter for archive
should support changing directory
dir should not be equal if system different
to_s and inspect
BuildMaster::PhysicalSystem work with CottaDir
load dir with basic information
should show path on to_s for convenience in scripting
dir objects are value objects, equal on system and path
dir should not be equal if path different
should support relative path
should know its parent
should look up parent
should return nil if parent lookup fails
should raise error if not exits stat
support stat
dir should handle root dir
dir should handle root dir for drive letters
dir should return sub directory
dir should return a directory from a relative pathname
should get file in current directory
should create dir and its parent
should delete dir and its children
should do nothing if dir does not exist
should do nothing on mkdir if dir already exists
should list dirs
should move directory with its children
should copy directory with its children
dir takes relative path
list on not existing directory
allow filter for archive
should support changing directory
BuildMaster::InMemorySystem with cotta file
file can be created with system and pathname
should return path on to_s for scripting convenience
file should know properties like parent, name, etc.
should support relative path
file should support stat
should raise error if does not exist
should load and save file content
should open file to read
should equal if same system and pathname
should copy to another file
should move file
should support foreach
should delete file
should raise error if file to delete does not exist
should check timestamp to see which one is older
BuildMaster::PhysicalSystem with cotta file
file can be created with system and pathname
should return path on to_s for scripting convenience
file should know properties like parent, name, etc.
should support relative path
file should support stat
should raise error if does not exist
should load and save file content
should open file to read
should equal if same system and pathname
should copy to another file
should move file
should support foreach
should delete file
should raise error if file to delete does not exist
should check timestamp to see which one is older
copying binary files properly
zip and unzip
BuildMaster::Cotta zip support
extract from a tar file
should archive files in the directory to a file
archive subdirectories
BuildMaster::InMemorySystem
current directory always exists
mkdir should create directory
mkdir raise error if dir already exists
io returns IO handle
file creation should leave file system consistent
directory creation should leave file system consistent
read io should raise error if file does not exists
delete dir
deleting dir that does not exist should raise error
copy file
move file
move dir
copy dir
root directory always exists
BuildMaster::IoChain
copy binary io
Pathname
parent check for unix path
parent check for windows path
parent check for normal ppl
BuildMaster::PhysicalSystem
current directory always exists
mkdir should create directory
mkdir raise error if dir already exists
io returns IO handle
file creation should leave file system consistent
directory creation should leave file system consistent
read io should raise error if file does not exists
delete dir
deleting dir that does not exist should raise error
copy file
move file
move dir
copy dir
root directory always exists
shell command should return output
should equals to any other physical system
BuildMaster::AntDriver
run
pass
dynamic_method
fail
BuildMaster::BuildNumberFile
load_file
increase_build
BuildMaster::CvsDriver
load_CvsInfo
checkout
update
command
BuildMaster::JavaManifest
loading_manifest
increase_build
BuildMaster::Release
run tasks in order
run task from specified step in order
run tasks between two
don't allow duplicate tasks
raise error for task not found
raise error for empty task
BuildMaster::ServerManager
server manager default to stopped status
launch server
keep checking server to see if it is running
stop and wait until it is not runnig anymore
raise error if start failed
BuildMaster::SvnDriver
check out, add, commit, update
BuildMaster::SvnStatusInfo
parse local changes
BuildMaster::VersionNumberFile
load_file
increase_build
handle file with only major and minor version number
IIS Driver
should work on real system - requires IIS installed and not running
should initiate start command
Microsoft SQL server driver
should control sql server - but need SQL server installed and not running
BuildMaster::ContentEngineRepository
can get content engine based on the source file
can get content engine based on the target file
default format for txt file to textile
element processor by element name
should raise exception if not configured for template
should process
File Processor
should know content and target
should copy the content if no content engine found
should have support for markdown content
should run template engine against resulting content
Site
should build base on content
ignore the svn and CVS directories
only build if source is out of date
set up site based on the template
site server
supports server type
execution expired
./test/buildmaster/site/templatelets../../../../../lib/buildmaster/site/site_server.rb:44:in `running?'
./test/buildmaster/site/templatelets../../../../../lib/buildmaster/site/site_server.rb:42:in `running?'
./test/buildmaster/site/../../../lib/buildmaster/project/server_manager.rb:13:in `start'
./test/buildmaster/site/../../../lib/buildmaster/project/server_manager.rb:50:in `wait_for_condition'
./test/buildmaster/site/../../../lib/buildmaster/project/server_manager.rb:13:in `start'
./test/buildmaster/site/tc_site_server.rb:31:
42        res = Net::HTTP.start(url.host, url.port) {|http|
43          http.read_timeout=5
44          http.request(request)
45        }
46        puts "response: #{res}"
Site Specification
get relative path
supports windows path
initialization with block
add property through [] notation
SourceFileHandler
should_be_able_to_find_source
element class alternation
get attribute value
raise template error if value is not there
BuildMaster::TemplateBuilder
should generate template document
should update header with title and css
test_should_have_logo_defaults
test_should_generate_logo_and_link
test_should_build_left_menu
should_have_releases_info
should_have_no_release_info_if_not_assigned
should_read_from_yaml
template error
format of exception
TemplateRunnerTest
process_element_in_document
should_use_templatelet_based_on_name
XTemplate
should_initialize_with_io
should_initialize_with_content
should_hook_up_templatelets
BuildMaster::Attribute
should_set_attribute_based_on_evaluation
should_check_for_expression_responder
shoul check properties as a backup
code template processsing
generate <pre> tag with code class by default
handle the case of only blank lines
generate error if none found
use PCDATA if no source specified
raise error if no source and no pcdata
generate syntax support
EachTest
should_iteration_through_selected_elements
handles the case where there are not enough items
HrefTest
should_populate_href_attribute_with_full_url
should_populate_href_attribute_with_relative_path
should_support_image_tag_by_generating_src_attribute
should_handle_external_links
should_handle_absolute_path
IncludeTest
should_include_the_source
LinkTest
should_generate_link_with_relative_path
should_copy_all_attributes
should_handle_absolute_path
should_generate_div_with_current_class_attribute_if_link_is_on_current_page
TextTest
should_generate_text_based_on_property
should_throw_exception_if_property_not_set
WhenTest
should_process_child_when_evaluated_true
should_not_process_child_when_evaluated_false