Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SkipIf command to skip tests if a condition is met #201

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Commits on Sep 15, 2019

  1. First implementation of SkipIf

    MisanthropicBit committed Sep 15, 2019
    Configuration menu
    Copy the full SHA
    7e626be View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2019

  1. Rework misguided first attempt

    MisanthropicBit committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    c55bb44 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2019

  1. Skip test if result is non-zero

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    5bbb392 View commit details
    Browse the repository at this point in the history
  2. Throw if condition does not evaluate to a number

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    d5e039d View commit details
    Browse the repository at this point in the history
  3. Add skip info to vader-result window, not qf list

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    45b26b2 View commit details
    Browse the repository at this point in the history
  4. Add prefix to end so users know what test failed

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    8494a4d View commit details
    Browse the repository at this point in the history
  5. Add line number for erroneous SkipIf case

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    6b74070 View commit details
    Browse the repository at this point in the history
  6. Fix SkipIf block name

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    5135176 View commit details
    Browse the repository at this point in the history
  7. Avoid join in condition

    By checking that there is no more than 1 line in case.skipif and that it
    is not empty, we know there is only a single line in case.skipif.
    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    a12e81a View commit details
    Browse the repository at this point in the history
  8. Remove old description variable

    MisanthropicBit committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    721a58d View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2019

  1. Add raw syntax for SkipIf, align regions

    MisanthropicBit committed Oct 12, 2019
    Configuration menu
    Copy the full SHA
    1f3704b View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2020

  1. Define Given before SkipIf is considered

    This makes sure that a Given block is available to test cases that rely
    on the same Given block but follow a SkipIf block.
    
    Add initial tests.
    MisanthropicBit committed Feb 6, 2020
    Configuration menu
    Copy the full SHA
    452e773 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2020

  1. Implement Require and SkipIf blocks

    * Both blocks work like Execute but only for vimscript.
    * The Require block skips the entire test file is some condition is met.
    * The SkipIf block skips a single test and must follow its Given block.
    * A special VaderSkip command is available in both blocks to perform
      the skip. Internally, a VaderSkipped exception is thrown to signal
      skips.
    MisanthropicBit committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    ef498d6 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2020

  1. Update skipif test

    MisanthropicBit committed May 15, 2020
    Configuration menu
    Copy the full SHA
    852aa61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4799260 View commit details
    Browse the repository at this point in the history