Coder Social home page Coder Social logo

scat's Introduction

scat

Simple constructor for acceptance tests

scat

New conception of tests:

  • Test file can contain only one scenario;
  • Test scenario looks like as the following:
    Scenario: Scenario description
    Given: Initial condition
    When: Action, trigger
    Then: The result
    
  • The keyword Given is the optional item of scenario;
  • There is ability to use keyword And inside of scenario to make combination of conditions;
  • There is ability to make references to another test scenarios using the following command: #ref("<name of scenario">).

Usage

usage:
	scat testfile

Example of executing scenario:

[   Scenario ]	Install package
[------------]	----------------------------------
[      Given ]	Clean machine
[       When ]	Execute installation for package
[       Then ]	Packages files are present
[ RUN        ]
[         OK ]
[------------]

Example of executing scenario with command in it:

[   Scenario ]	Install package
[------------]	----------------------------------
[      Given ]	There is clean machine
[       When ]	We #execute("install test.pkg -target /")
[       Then ]	Packages files are present)
[ RUN        ]
[         OK ]
[------------]

TODO

  • Parse command;
  • Execute scenario with command;
  • Implement support of keyword And;
  • Run plugin on executing scenario with command;
  • Plugin for running OS command;
  • Add test case with command parsing in Scenario for TestFileParser (ignore command in Scenario);
  • Keep line and symbol for parsing issues.

scat's People

Contributors

ivorob avatar

Stargazers

 avatar

Watchers

 avatar

scat's Issues

Execute one AC test

As user I want to have ability to execute file with AC test and get result of execution that test

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.