Code Monkey home page Code Monkey logo

stubs's People

Contributors

casualjim avatar glendc avatar paulvollmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

stubs's Issues

Making stubs great again

@casualjim

Please don't ditch this repo: it is awesome, albeit unfinished work.
I'll try to revive it. I managed to make it up and running and I am starting to figure out the many shortcomings. That's quite a heavy task.

Here is a todo that came up after a couple hours tinkering with the package.

What remains to be done. Feel free to comment.

  • workable faker for numbers and integers, according to format (format given as Arg to ValueGenerator)
  • faker for date, date-time and duration formats (duration is simple starting from a random int and using random alternate text marshaller,
    date is not so complex: take time.Now() and subtract a random number of days then marshal as text
  • relocate the reseed at top level (as top level option)
  • taking into account validations (planned dev, but no actual implementation)
  • abide by generation flags to control when generating a passing case and a non passing case (currently not implemented)
  • faker for slices (with option to produce a parsable string using CollectionFormat)
  • a testable fixture generator to instruct a test client (or a unit testing program)
  • a spec walker (may reuse the one under development with validate) to generate test cases for parameters, headers and responses
  • a test case orchestrator to plan for a full coverage of validation points
  • rule-based option detection for simple types: the idea is to find a smart way to select the ValueGenerator according to rules
    • simple types and formats should provide straightforward rules
  • a fuzzy-er based on title and description tags, along the lines of what meqqa suggests
  • the idea is to detect proper options according to hints in title/doc
  • investigate go native solution for NLP (meqqa use Python)
  • limit the use of x-datagen extension tag
  • generate combinatorial test suite with required / non required / allowsEmpty items
  • find a way to customize the faker dictionary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.