Skip to content

Releases: byexamples/byexample

7.2.1

03 Sep 15:02
Compare
Choose a tag to compare

Changes from previous version:
Enhancements:

  • Removed obsolete code.
  • Improved the documentation.

7.2.0

03 Sep 15:02
Compare
Choose a tag to compare

Changes from previous version:
Enhancements:

  • Find prompt-based examples of Ruby even if they are prefixed by #
    This may detect new examples but it should be unlikely and with
    low impact. (The Ruby module is still experimental)
  • Enable +fail-fast inside in an example #42 As side effect, the
    examples will be skipped (marked as SKIP). See c17f433
  • Enable -skip inside in an example to executing even if the execution
    is failing fast #43 See c17f433
  • Improved the documentation.
    Fixes:
  • Don't let gdb to ask for confirmation.

7.1.2

23 Aug 16:34
Compare
Choose a tag to compare

Changes from previous version:
Fix:

  • Fixed the README in PyPI and improve it a little.

7.1.1

21 Aug 02:17
Compare
Choose a tag to compare

Changes from previous version:
Fix:

  • Fixed the setup.py that was requiring Python >= 2.6 for running
    byexample. The support for Python 2.6 was dropped in 6.0.0. However,
    almost everything in byexample can run under 2.6 (except shebang
    feature).

7.1.0

18 Aug 23:32
Compare
Choose a tag to compare

Changes from previous version:
Enhancements

  • Implemented the stop-on-silence option for Shell: instead of raising a
    timeout, if an example takes too long the runner will stop the long-running
    process. It is undefined if there isn't a process running and the
    example times out. See docs/languages/shell for a complete overview and
    possible usage of this.

7.0.3

18 Aug 16:42
Compare
Choose a tag to compare

Changes from previous version:
Enhancements

  • Disable output with colors if the terminal doesn't support them.

7.0.2

02 Aug 14:03
Compare
Choose a tag to compare

Changes from previous version:
Enhancements

  • Allow to load command line options from a file using '@ file' syntax.

7.0.1

01 Aug 15:37
Compare
Choose a tag to compare

Changes from previous version:
Fixes

  • The tag names that contains a minus - like will work in
    paste mode (+paste).

7.0.0

29 Jul 23:22
Compare
Choose a tag to compare

Changes from previous version:
Fixes

  • Save in Example its own local options and not its options merged with
    the global one. It will be during the execution of the example that its
    options will be merged.
  • Expected's get_captures can be called without calling
    check_got_output before.
  • Fixed the interact functionality for Python 3.x.
  • Print the error (if any) after the interact session.
  • Make sure that expected_str is a string even if the example has no
    expected output (in which case expected_str will be the empty string).
  • Fixed the heuristics to avoid collisions: pick the specific finder
    over the generic one even if they are of different languages.
  • Fix print traceback for Python 2.x.

Enhancements

  • Allow a Ruby => following by the end of the string: this trigger the
    auto print expressions without needing a value after the =>.
  • The Concerns can add their own options and flags like the Parsers.
  • Made Example modifiable a full class instead of a namedtuple.
  • Improve the errors printing the source code of the example where the
    error happen (if available).
  • Extended the Concern interface adding hooks to the parsing phase of
    an example: start_parse, before_build_regex and finish_parse.
  • Delayed the parsing phase just before executing the example: this
    allow the modification of an example before parsing (like its expected).
  • Better error printing if the parsing of an example fails.
  • Clipboard module to support 'paste' of previously captured texts. See
    720916a. Use +paste option to enable it.
  • Better prints (logs). See 45e3188.

Incompatible changes (examples)

  • Removed +shell option from Shell runner

Incompatible changes (lib)

  • No more ExampleMatch, Example will do its job. See f949d64.
    Initially the Example is created by the Finder in an "incomplete, not
    parsed yet" state. Later, the Example is parsed calling
    Example.parse_yourself which calls Parser.parse.
  • Parser.build_example renamed to Parse.parse (and simplified its
    interface).

Incompatible changes (modules)

  • The option parser optparser is not passed explicitly, you can still
    get it from options['optparser'].
  • Runner.initialize will not be called with the examples.
  • Concern.start_run will be called with a not parsed examples: some
    of theirs attributes will be missing.
  • Renamed some Concern's hooks: start_run to start, end_run to finish,
    end_example to finish_example.
  • Removed Example's meta; Example is writable so there is no need to
    have an extra attribute.

Erratum: In the git tag says that the new Concern methods are start_build and finish_build but this is incorrect, the new methods are start_parse and finish_parse.

6.0.1

20 Jul 02:33
Compare
Choose a tag to compare

Changes from previous version:
Fixes
- Added support for the heredoc syntax used by the Ruby interpreter
irb.