1.0.12 • Published 4 years ago

pyramid-test-helper v1.0.12

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

pyramid-test-helper

Projeto desenvolvido para scanear o repositorios e localizar testes automatizados a fim de mapear e criar piramide de testes. Utilizando json como arquivo de configuração e regex para identificar os testes. Após encontrar os testes o mesmo se integra a Api's atraves de metodo Post.

Installation

npm i pyramid-test-helper

Usage

npx pyramid-scan ConfigFile.json

Example configuration file

{
   "fieldsDefault":[
     {
      "Key":"Label",
      "value":"Value"
    }
  ],
  "urlApi":"http://urlToPost",
  "headers":[
    {
      "Key":"content-type",
      "value":"application/x-www-form-urlencoded"
    }
  ],
  "testConfig":[
    {
      "name": "Unit",
      "fileNameRegex": ".*/*Tests?\\.cs$",
      "path": "pathToRepository",
      "fieldCount":"NameFieldToCountTestToRegex",
      "testRules": {
        "testCountRegex": "\\[Fact*]",
        "optionsTestCountRegex":"gm",
        "testExclusionRegex": "^\\[Fact\\(Skip=\"(.+?)\"\\)\\]+$",
        "optionsTestExcluisonRegex":"gm"
      }
    },
    {
      "name": "Contract",
      "fileNameRegex": ".*spec\\.js$",
      "path": "pathToRepository",
      "fieldCount":"NameFieldToCountTestToRegex",
      "testRules": {
        "testCountRegex": ".*it.*\\('(.+?)",
        "optionsTestCountRegex":"gm",
        "testExclusionRegex": ".*it\\.skip",
        "optionsTestExcluisonRegex":"gm"
      }
    },
    {
      "name": "Integration",
      "fileNameRegex": ".*spec\\.js$",
      "path": "pathToRepository",
      "fieldCount":"NameFieldToCountTestToRegex",
      "testRules": {
        "testCountRegex": ".*it.*\\('(.+?)",
        "optionsTestCountRegex":"gm",
        "testExclusionRegex": ".*it\\.skip",
        "optionsTestExcluisonRegex":"gm"
      }
    }
  ]
}
1.0.12

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago