Giter VIP home page Giter VIP logo

alchemy-test's People

Contributors

sirwellington avatar

Stargazers

 avatar  avatar

Watchers

 avatar

alchemy-test's Issues

Add @GenerateDate

Design would look something like this:

@GenerateDate(PAST)
private Date purchaseDate;

Add @GenerateDouble

Design would be something like:

@GenerateDouble(value =  RANGE, min = 0.9, max = 100.0);
double price;

Automatic Data Generation

Add the ability to automatically instantiate Fake Data using Alchemy Generator

Example:

public void TestClass
{
  @GenerateString(ALPHABETIC)
  private String username;

  @Before
  public void setUp()
  {
  }
}

@GenerateEnum

Delegates to the EnumGenerators

public class TimeTest
{
  @GenerateEnum
  private TimeUnit timeUnit;
//...
}

Add @GenerateLong

Design would look like:

@GenerateLong(NEGATIVE)
private long points;

Add @GenerateInstant

Design would look something like this:

@GenerateInstant(PRESENT)
private Instant timeOfEvent;

Add @GenerateList

Design could look something like this:

@GenerateList(size = 100, generator = @GenerateString(HEXADECIMAL))
private List<String> codes;

Add an Alchemy JUnit-Runner

This Runner will have some features such has:

  • Automatic insertion of `System.out.println() as the beginning.
  • Ability to repeat test cases a number of times, instead of running just once.

Add @GeneratePojo

Generates a POJO using ObjectGenerators.pojos()

@RunsWith(AlchemyTestRunner.class)
public class BananaTest
{
  @GeneratePojo
  private SendMessageRequest request;

  private BananaService instance;

  ...
}

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.