GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add ability to get expectation results without test-suite · Issue #956 · utPLSQL/utPLSQL

Add ability to get expectation results without test-suite #956

New issue
Copy link
New issue
Copy link
Closed
#963
Closed
Add ability to get expectation results without test-suite#956
#963
Copy link
Labels
enhancementidea

Description

@jgebal
jgebal
opened on Jun 24, 2019
Issue body actions

Describe the solution you'd like
Currently, to see the outcomes of ut.expect... one needs to create unit test package spec, unit test body and invoke the ut.run.
For some very simple (basic) test cases it would be hugely beneficial to allow invocation of expectations as it is possible in groovy.
For example, groovy allows for one-line asserts in groovy console:

def strArray = new String[3]
assert strArray instanceof String[]
strArray[0] = 'mrhaki'
strArray.putAt(1, 'Groovy')  // New syntax.
strArray[2] = 'Java'
 
assert 'mrhaki' == strArray.getAt(0)  // Just another way to get a value.

It would be great to be able to invoke utPSLQL expecations in similar way from SQLPlus or any other SQL console, example:

exec ut.expect(1).to_equal(2);

Additional context
When running outside of utPLSQL test-run, expectations should provide outputs straight to screen.
When running within utPSLQL test-run, they should provide outputs as they do today (to be consumed by reporters)

Activity

  1. jgebal
    added
    enhancement
    idea
    on Jun 24, 2019
  2. jgebal
    added 2 commits that reference this issue on Jul 2, 2019

    [WIP] Ability to run expectations without test

    This issue will close once commit e172d40 is merged into the 'develop' branch.
    e172d40

    [WIP] Ability to run expectations without test

    This issue will close once commit f5fa468 is merged into the 'develop' branch.
    f5fa468
  3. jgebal
    closed this as completedin #963on Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementidea

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.