1.0.8-rc.6 • Published 4 years ago

zucchini-repository v1.0.8-rc.6

Weekly downloads
25
License
-
Repository
-
Last release
4 years ago

Introduction

Automatized tests

Getting Started

Clone repository and execute "npm install"

Build and Test

For execute files in "features" in your project is needed typing the next command:

node zucchini -d {projectPath} -t {testName}

Examples:

node zucchini -d C:/dv/my-project -t my-test-1 node zucchini -d C:/dv/my-project -t test-name

The structure of folders is the next:

|-- my-project
   |-- features
      |-- my-feature.feature
      |-- [+] others-features
      |-- setup
         |-- settings.json

The structure of settings.json is the next:

{
    "name": "project-name",
    "script": "script for execute (example: run-debug, run-start)",
    "tests": [
        { 
            "name": "test-name",
            "options": {
                "scenarios": {
                    "files": [
                        "my-feature.feature",
                        "folder-features/my-feature.feature",
                        "folder-features/my-feature.feature:5",
                        "folder-features",
                        "folder-features/**/*.feature"
                    ],
                    "names": [
                        "first_scenario",
                        "second_scenario",
                        "third_scenario"
                    ],
                    "tags": [
                        "@one",
                        "@three",
                        "@one,@three",
                        "~@three",
                        "@one:1",
                        "~@one:1"
                    ]
                },
                "definitions": [
                    "web/genome/common-definitions/**/*.ts",
                    "web/genome/steps_definition/buttons.steps.js",
                    "web/genome/steps_definition/*.js"
                ]
            }
        }
    ]
}

Example:

{
 "name": "project-name",
    "script": "run-start",
    "tests": [
        { 
            "name": "test-name",
            "options": {
                "scenarios": {
                    "files": [
                       "**/*.feature"
                    ],
                    "names": [
                                 
                    ],
                    "tags": [
                       
                    ]
                },
                "definitions": [
                    "web/genome/common-definitions/**/*.ts"                    
                ]
            }
        }
    ]
}

Contribute

TODO: Explain how other users and developers can contribute to make your code better.

If you want to learn more about creating good readme files then refer the following guidelines. You can also seek inspiration from the below readme files: