Giter Club home page Giter Club logo

report-aggregator-excercise's Introduction

Simple Test Report Aggregator

Assumptions:

  1. Input file should contain single START
  2. On one line not more than one of START / --- PASS:/ --- FAIL: / -- SKIP: keyword should be present
  3. "=== RUN" is not counted as Test Step.
  4. TestCase should start with word "Test"
  5. Standlone "PASS" or "FAIL" will be counted as overall test Suite status

How to run Excercise App:

  1. Install maven dependencies
  2. Go to main/java/core/Runner.java
  3. Right click & click on Run option [Kindly refer snapshot provided at the bottom of this page]
  4. Provide input of the test files either using number 1/2/3/4 or write full file name viz- "rewrite_test" / "rewrite_test.txt" etc
  5. Output will be generated on output prompt of IDE [Kindly refer snapshot provided at the bottom of this page]

How to run Tests:

  1. Go to src/test/java/test/java/TestSuite.java
  2. Right click & click on Run option

Thanks a lot

Illustration of the data structure used to slice the data

image

image

Future Improvements:

  1. Remove Hardcoupling and Decouple functions into Modular format, so that any side effects can be avoided. And testing functions in isolation will become possible.
  2. Provide dynamic test data to tests
  3. Improve regex
  4. Handle Blanks and unexpected inputs
  5. Fix commandline issue so that tests can be triggered from commandline

Run Illustration

image

image

report-aggregator-excercise's People

Contributors

laxmikantm avatar

Watchers

James Cloos avatar  avatar

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.