Please see CONTRIBUTING.md on how to contribute to Cucumber.
Not released yet
- Link fixes, formatting updates, etc. to bring CHANGELOG inline with cucumber/cucumber's #521 (#482, jaysonesmith)
- Rename History.md to CHANGELOG.md as part of cucumber/cucumber's #521 (#481, jaysonesmith)
- Improve documentation for users and developers (#454, #456, #457, #460, #459)
- Remove development gems for unsupported Rubinius platform
- Fix UTF-8 issues with jRuby (#464, stamhankar999)
- Fix bugs in Travis build (#462)
- Update examples for usage in README
- Fix environment manipulation (#442)
- Update supported ruby versions in .travis.yml (#449)
- Use license_finder version which is usable for rubies
< 2.3
(#451) - Wrap test runners in
bundle exec
(#447) - Fix wording in README (#445)
- Restructure README and upload feature files to cucumber.pro (#444)
-
Use new proposed structure for gems by bundler (#439)
-
Rename methods which run commands (#438)
-
Fix dependency error for install (#427)
-
Actually fail the build if rake test fails (#433)
-
Improve frozen-string-literals compatibility. (#436)
-
Fix running commands on Windows (#387)
-
Fix running commands on Windows (#387)
-
Set permissions to values which are supported on Windows (#398, #388)
-
Remove Aruba::Reporting (#389)
-
Rename bin/cli to bin/aruba-test-cli to prevent name conflict (#390)
-
Drop support for
ruby < 1.9.3
and rubinius (#385) -
Fixed wrong number of arguments in
Aruba::Platforms::WindowsEnvironmentVariables#delete
(#349, #358, e2) -
Added vision and hints to project README (#366)
-
Prefixed exception in
rescue
-call to make it fail with a proper error message (#376) -
Run and build aruba in isolated environment via docker (#353 e2, #382)
-
Run container with docker-compose without making docker-compose a required dependency. Rake tasks read in the docker-compose.yml instead (#382)
-
Document developer rake tasks via cucumber features (#382)
-
Add more hints to CONTRIBUTING.md (#382)
-
Cleanup rake tasks via separate namespaces (#382)
-
Some more minor fixes (#382)
-
Don't run feature test if executable required for test is not installed (python, bash, zsh, javac, ...) (#382)
-
Support for rubies older than 1.9.3 is discontinued - e.g 1.8.7 and 1.9.2
-
aruba requires "cucumber 2" for the feature steps. The rest of aruba should be usable by whatever testing framework you are using.
-
Overwriting methods for configuration is discontinued. You need to use
aruba.config.<variable>
orAruba.configure { |config| config.<variable>
instead. -
"aruba/reporting" will be removed. Please use
@debug
-tag +byebug
,debugger
,pry
to troubleshoot your feature tests. -
Set environment variables will have only effect on
#run
and the like +#with_environment { }
. -
The process environment will be fully resetted between tests. Sharing state via ENV['VAR'] = 'shared state' between tests will not be possible anymore. Please make that obvious by using explicit steps or use the aruba API for that.
-
There will be a major cleanup for command execution. There will be only
run
andrun_simple
left.run_interactive
is replaced byrun
. -
Setting the root directory of aruba via method overwrite or configuration - this should be your project root directory where the test suite is run.
-
The direct use of "InProcess", "DebugProcess" and "SpawnProcess" is not supported anymore. You need to use "Command" instead. But be careful, it has a different API.
-
HOME can be configured via
Aruba.configure {}
and defaults toFile.join(aruba.config.root_directory, aruba.config.working_directory?)
ifaruba/cucumber
oraruba/rspec
is used. -
Use different working directories based on test suite - RSpec, Cucumber. It's
tmp/rspec
andtmp/cucumber
now to make sure they do not overwrite the test results from each other. -
The use of
@interactive
is discontinued. You need to use#last_command_started
-method to get access to the interactively started command. -
If multiple commands have been started, each output has to be check separately
Scenario: Detect stdout from all processes When I run `printf "hello world!\n"` And I run `cat` interactively And I type "hola" And I type "�" Then the stdout should contain: """ hello world! """ And the stdout should contain: """ hola """ And the stderr should not contain anything
- Fixed bug in framework step
- Add
<project_root>/exe
to search path for commands: This is the new default if you setup a project with bundler. - Add some more steps to modify environment
- Add two new hooks for rspec and cucumber to make troubleshooting feature
files easier (#338):
- command_content: Outputs command content - helpful for scripts
- command_filesystem_status: Outputs information like group, owner, mode, atime, mtime
- Add generator to create ad hoc script file (#323, AdrieanKhisbe)
- Colored announcer output similar to the color of
cucumber
tags: cyan - Fixed bug in announcer. It announces infomation several times due to duplicate announce-calls.
- Refactorings to internal
#simple_table
-method (internal) - Refactored Announcer, now it supports blocks for announce as well (internal)
- Fix circular require warnings (#339)
- Fix use of old instances variable "@io_wait" (#341). Now the default value for io_wait_timeout can be set correctly.
- Make it possible to announce information on command error, using a new option
called
activate_announcer_on_command_failure
(#335, njam) - Re-integrate
event-bus
-library intoaruba
-core (#342)
- Add matcher to check if a command can be found in PATH (#336)
- Fixed issue with environment variables set by external libraries (#321, #320)
- Fixed problem with positional arguments in
#run_simple()
(#322)
- Use fixed version of event-bus
- Refactored and improved documentation (feature tests) in #309
- Accidently pushed to rubygems.org - yanked it afterwards
- Fixed syntax for Hash on ruby 1.8.7
- Reorder rubies in .travis.yml
- Fixed syntax for proc on ruby 1.8.7
- Integrate
EventBus
to decouple announcers from starting, stopping commands etc. This uses nearly the same implementation likecucumber
. (#309) - Starting/Stopping a command directly (
command.start
,command.stop
) is now reported to the command monitor andlast_command_stopped
is updated correctly - Added
#restart
toCommand
to make it possible to restart a command - Added check to prevent a command which has already been started, to be started again. Otherwise you've got hidden commands which are not stopped after a cucumber/rspec/minitest run.
- Adding alot of documentation to
aruba
- Refactored
#run
: Now it wants you to pass aHash
containing the options. The old syntax is still supported, but is deprecated. - Added
#find_command
as experimental feature. It searches the started commands from last to first. - Added
be_an_executable
matcher
- Set stop signal which should be used to stop a process after a timeout or used to terminate a process. This can be used to stop processes running docker + "systemd". If you send a systemd-enable container SIGINT it will be stopped.
- Added a configurable amount of time after a command was started - startup_wait_time. Otherwise you get problems when a process takes to long to startup when you run in background and want to sent it a signal.
- Replace
<variable>
in commandline, e.g.<pid-last-command-started>
[experimental] - Added announce formatter for time spans, e.g.
startup_wait_time
- All
*Process
-classes e.g.BasicProcess
,SpawnProcess
etc. are marked as private. Users should use#run('cmd')
and don't use the classes directly. rvm
-methods are deprecated. They too ruby specific.
- Fixed problem in regex after merge of step definitions
- Merged remove steps for file and directory from 4 into 2 step definitions
- Fix '"#exit_timeout" is deprecated' error (#314)
- Take over code from
RSpec::Support::ObjectFormatter
sincerspec-support
is not intended for public use.
- Add some new steps to make writing documentation easier using "cucumber", "rspec", "minitest" together with "aruba" - see Feature for some examples
- Write output of commands directly to disk if SpawnProcess is used (see https://github.com/cucumber/aruba/commit/85d74fcca4fff4e753776925d8b003cddaa8041d)
- Refactored API of cucumber steps to reduce the need for more methods and make it easier for users to write their own steps (#306)
- Added
aruba init
to the cli command to setup environment for aruba (issue #308) - Added new method
delete_environment_variable
to remove environment variable - Added work around because of method name conflict between Capybara and RSpec (https://github.com/cucumber/aruba/commit/1939c4049d5195ffdd967485f50119bdd86e98a0)
- Fix feature test
- Fix ordering in console
- Fix bug in console handling SIGINT
- Deprecated Aruba/Reporting before we remove it
- Redefine #to_s and #inspect for BasicProcess to reduce the sheer amount of information, if a command produces a lot of output
- Added new matcher
#all_objects
to check if an object is included + a error message for failures which is similar to the#all
-matcher ofRSpec
- Add
have_output
-,have_output_on_stderr
,have_output_on_stdout
-matchers - Replace all
assert_*
andcheck_*
-methods through expectations - Add hook
@announce-output
to output both, stderr and stdout - Add a lot of documentation (#260)
- Replace
#last_command
through#last_command_started
and#last_command_stopped
to make it more explicit - Improve syntax highlighting in cucumber feature tests by adding programming
language to
"""
-blocks - Rename tags
@ignore-*
to@unsupported-on-*
- Introduce our own
BaseMatcher
-class to remove the dependency toRSpec
's private matcher APIs - Now we make the process started via
SpawnProcess
the leader of the group to kill all sub-processes more reliably
- Improve documentation for filesystem api and move it to feature tests
- Add logger to aruba. Its output can be captured by rspec.
- Fix incorrect deprecation message for check_file_presence (#292)
- Fix for Gemfile excludes windows for many gems (#282)
- Make feature tests compatible with ruby 1.9.2
- Gather disk usage for file(s) (#294)
- Replace keep_ansi-config option by remove_ansi_escape_sequences-option
- Split up
#unescape
into#extract_text
and#unescape_text
- Use
UnixPlatform
andWindowsPlatform
to make code for different platforms maintainable - Work around
ENV
-bug inJruby
buy using#dup
onENV.to_h
(jruby/jruby issue #316) - Speed up test on
JRuby
by using--dev
-flag - Work around problems when copying files with
cp
on MRI-ruby 1.9.2 - Add cmd.exe /c for SpawnProcess on Windows (#302)
- Split up
#which
for Windows and Unix/Linux (#304) - Add
aruba console
-command to play around with aruba (#305)
- Fix problem if working directory of aruba does not exist (#286)
- Re-Add removed method only_processes
- Fixed problem with last exit status
- Added appveyor to run tests of aruba on Windows (#287)
- Make the home directory configurable and use Around/around-hook to apply it
- Add announcer to output the full environment before a command is run
- Use prepend_environment_variable to modify PATH for rspec integration
- Add VERSION-constant to aruba and use it for code which should be activated on >= 1.0.0
- Build with cucumber 1.3.x on ruby 1.8.7, with cucumber 2.x on all other platforms
- Fixed bugs in aruba's cucumber steps
- Disable use of
win32/file
- Fixed but in
in_current_dir*
not returning the result of the block - Fixed checks for file content
- Fixed selectors for DebugProcess and InProcess to support sub-classes as well
- Depend on cucumber 1.3.x for compatibility on ruby 1.8.7
- Change PWD and OLDPW when
cd('path') {}
is used within that block - Make nesting of
cd
possible - Make
run
insidecd
possible - Fixed some bugs
- Move
Aruba.proces = InProcess|SpawnProcess|DebugProcess
toaruba.config
- Deprecate direct use of
InProcess|SpawnProcess|DebugProcess
. NowCommand
needs to be used - Add new configuration options
command_launcher
andmain_klass
for deprecation of old-styleAruba.process = <class>
,:spawn
is the default value for thecommand_launcher
-option - Added checks for version of
rspec-expectations
to support olderrspec
versions like2.11
- Now each
path/to/dir
pushed toaruba.current_directory
ispop
ed as whole - Make testing of
aruba.current_directory
easier by supportingend_with?
andstart_with?
- Relax requirement on rspec-expectations (3.3 -> 2.11)
- Make aruba compatible with "ruby 1.8.7" and "ruby 1.9.3" again (#279)
- Move more and more documentation to cucumber steps (#268)
- Refactoring of test suits, now rspec tests run randomly
- Move Aruba constants to configuration class (#271)
- Added runtime configuration via
aruba.config
which is reset for each test run - Refactored hooks: now there are
after()
andbefore()
-hooks, old before_cmd-hook is still working, but is deprecated, added newafter(:command)
-hook. - Refactored jruby-startup helper
- Cleanup API by moving deprecated methods to separate class
- Cleanup Core API - reduced to
cd
,expand_path
,setup_aruba
and use expand_path wherever possible (#253) - Better isolation for environment variable manipulation - really helpful from 1.0.0 on
- Move configuration files like
jruby.rb
toaruba/config/
-directory - Change default exit timeout to 15 seconds to work around long running processes on travis
- Use of instance variables like @aruba_timeout_seconds or
@aruba_io_wait_seconds are deprecated. Use
Aruba.configure do |config| config.exit_timeout = 10
etc. for this.
- Really Fixed post install message
- Fixed post install message
- Do not trigger Announcer API deprecation warning (#277)
- Do not break if @interactive is used
- Introducing root_directory (#232)
- Introducing fixtures directory (#224)
- Make sure a file/directory does not exist + Cleanup named file/directory steps (#234)
- Make matcher have_permisions public and add documentation (#239)
- Added matcher for file content (#238)
- Add rspec integrator (#244)
- Deprecate _file/_directory in method names (#243)
- Improve development environment (#240)
- Cleanup process management (#257)
- Make path content available through matchers and api metchods (#250)
- Refactor announcer to support user defined announce channels (fixes #267)
InProcess
requires that the working directory is determined on runtime not no loadtime
- Fixed minor #223)
- Added support for ruby 2.1.3 -- 2.1.5
- Added support for comparison to a fixture file
- Added support for ruby 2.1.2
- Added support for ~ expansion
- Added support for with_env
- Dropped support for ruby 1.8
- Added support for ruby 2.1.0 and 2.1.1
- Added rspec 3.0.0 support
- Added support for piping in files (#154, maxmeyer, dg-vrnetze)
- Added cucumber steps for environment variables (#156, dg-vrnetze)
- Added support for file mode (#157, maxmeyer, dg-vrnetze)
- Plugin API for greater speed. Test Ruby CLI programs in a single Ruby process (#148, aslakhellesoy)
- Fix memory leak when several commands are executed in a single run (#144, y-higuchi)
- Individual timeout settings when running commands (#124, jarl-dk)
- Varous fixes for JRuby tests, should now work on more versions of JRuby
- Add #with_file_content to the DSL (#110, argent-smith)
- Make JRuby performance tweaks optional (#102, taylor, #125, alindeman)
- Add assert_partial_output_interactive so you can peek at the output from a running process (#104, taylor)
- Add assert_not_matching_output (#111, argent-smith)
- Add remove_dir (#121, LTe)
- Fix duplicated output (#91, robertwahler, mattwynne)
- Fix Gemspec format (#101, mattwynne)
- Rename before_run hook to before_cmd (mattwynne)
- Fix 1.8.7 compatibility (#95, davetron5000)
- Add before_run hook (mattwynne)
- Add JRuby performance tweaks (#93, myronmarston, mattwynne)
- Invalid/Corrupt spec file for 0.4.7 - undefined method call for nil:Nilclass (#47, aslakhellesoy)
- Remove rdiscount dependency. (#85, aslakhellesoy)
- Pin to ffi 1.0.9 since 1.0.10 is broken. (aslakhellesoy)
- Added file size specific steps to the Aruba API. (#89, hectcastro)
- Upgraded deps to latest gems. (aslakhellesoy)
- Added Regexp support to Aruba::Api#assert_no_partial_output (aslakhellesoy)
- Better assertion failure message when an exit code is not as expected. (mattwynne)
- Fix various bugs with interative processes. (mattwynne)
- Aruba reporting now creates an index file for reports, linking them all together. (aslakhellesoy)
- Appending to a file creates the parent directory if it doesn't exist. (aslakhellesoy)
- Move more logic into Aruba::Api (aslakhellesoy)
- New, awesome HTML reporting feature that captures everything that happens during a scenario. (aslakhellesoy)
- ANSI escapes from output are stripped by default. Override this with the @ansi tag. (aslakhellesoy)
- Make Aruba::Api#get_process return the last executed process with passed cmd (greyblake)
- Replace announce with puts to comply with cucumber 0.10.6 (aslakhellesoy)
- Fix childprocess STDIN to be synchronous (#40, #71, lithium3141)
- Changed default value of @aruba_timeout_seconds from 1 to 3. (aslakhellesoy)
- Separate hooks and steps to make it easier to build your own steps on top of Aruba's API (msassak)
- @no-clobber to prevent cleanup before each scenario (msassak)
- Use backticks (`) instead of quotes (") to specify command line. Quote still works, but is deprecated. (aeden, aslakhellesoy)
- Updated RSpec development requirement to 2.5 (rspeicher, msassak, aslakhellesoy)
- Updated RubyGems dependency to 1.6.1 (rspeicher)
- Wrong number of args in the When I overwrite step (aslakhellesoy)
- Broken 0.3.0 release (#43, #44, msassak)
- Quotes (") and newline (\n) in step arguments are no longer unescaped. (aslakhellesoy)
- Remove latency introduced in the 0.2.8 release (#42, msassak)
- New stepdef Then /^the stdout should contain:$/ do |partial_output| (aslakhellesoy)
- Quotes (") and newline (\n) in step arguments no longer need to be backslash-escaped. (aslakhellesoy)
- Replaced background_process with childprocess, a cross-platform process control library. This will allow Aruba to run on Windows and JRuby in addition to *nix MRI. (#16, #27, #31, msassak, jarib, mattwynne, aknuds1)
- Upgrade to Cucumber 0.10.0. (aslakhellesoy)
- require 'aruba' does nothing - you have to require 'aruba/cucumber' now. This is to prevent bundler from loading it when we don't want to. (aslakhellesoy)
- Outputting a lot of data causes process to time out (#30, msassak)
- You can set @aruba_timeout_seconds in a Before hook to tell Aruba to wait for a process to complete. Default: 1 second. (aslakhellesoy)
- Fixed small bug in /^the stdout should contain exactly:$/ (aslakhellesoy)
- Added 'a file named "whatever" should (not) exist' (rspeicher)
- Added 'a directory named "whatever" should (not) exist' (rspeicher)
- Added /^the stderr should contain exactly:"$/ (aslakhellesoy)
- Added /^the stdout should contain exactly:"$/ (aslakhellesoy)
- Added /it should pass with exactly:/ (aslakhellesoy)
- @announce, @announce-dir and @announce-cmd for interactive processes (msassak)
- Add step defs for detecting output, stdout and stderr by process name (msassak)
- Stop all processes before verifying filesystem changes to ensure async operations are complete (#17, msassak)
- Outputting large amounts of data causes run steps to hang (#18, msassak)
- Added step definitions for removing files and checking presence of a single file. (aslakhellesoy)
- Directory should not exist gives false-positive (#13, #15, nruth)
- Added step definitions for comparing file contents with regexps (#9, aslakhellesoy)
- Always put ./bin at the beginning of $PATH to make it easier to run own executables (#7, aslakhellesoy)
- Communication with interactive processes (#4, msassak)
- Remove hyphens separating stdout and stderr (aknuds1)
- Added a @bin tag that sets up './bin' first on the path (aslakhellesoy)
- Richer API making aruba easier to use from Ruby code. (Mark Nijhof, aslakhellesoy)
- No more support for RVM. Use rvm 1.9.2,1.8.7 exec cucumber .... instead. (Mark Nijhof, aslakhellesoy)
- Always compare with RSpec should =~ instead of should match. This gives a diff when there is no match. (aslakhellesoy)
-
Added aruba.gemspec. (dchelimsky)
-
Several step definitions regarding output have changed. (#1, aslakhellesoy)
- /^I should see "([^\"]*)"$/
- /^the output should contain "([^"]*)"$/
- /^I should not see "([^\"]*)"$/
- /^the output should not contain "([^"]*)"$/
- /^I should see:$/
- /^the output should contain:$/
- /^I should not see:$/
- /^the output should not contain:$/
- /^I should see exactly "([^\"]*)"$/
- /^the output should contain exactly "([^"]*)"$/
- /^I should see exactly:$/
- /^the output should contain exactly:$/
- /^I should see matching /([^\/]*)/$/
- /^the output should match /([^\/]*)/$/
- /^I should see matching:$/
- /^the output should match:$/
- If the GOTGEMS environment variable is set, bundler won't run (faster). (aslakhellesoy)
- Use // instead of "" for "I should see matching" step. (aslakhellesoy)
- Replace rvm gemset character '%' with '@' for rvm 0.1.24 (#5, Ashley Moran)
- Support gem bundler, making it easier to specify gems. (aslakhellesoy)
- New @announce-stderr tag (robertwahler)
- New "I should see matching" steps using Regexp (robertwahler)
- When /^I successfully run "(.*)"$/ now prints the combined output if exit status is not 0. (aslakhellesoy)
- Add bundle to list of common ruby scripts. (aslakhellesoy)
- Added ability to map rvm versions to a specific version with config/aruba-rvm.yml. (aslakhellesoy)
- Check for presence of files. (aslakhellesoy)
- Allow specification of rvm gemsets. (aslakhellesoy)
- Detect ruby commands and use current ruby when rvm is not explicitly used. (aslakhellesoy)
- Added support for rvm, making it possible to choose Ruby interpreter. (aslakhellesoy)
- Added @announce-cmd, @announce-stdout and @announce tags, useful for seeing what's executed and outputted. (aslakhellesoy)
- New step definition for appending to a file (aslakhellesoy)
- New step definition for cd (change directory) (aslakhellesoy)
- Separated API from Cucumber step definitions, makes this usable without Cucumber. (aslakhellesoy)
- Better Regexp escaping (dchelimsky)
- First release (dchelimsky and aslakhellesoy)