0.0.228 • Published 1 year ago

pytagora v0.0.228

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago
  1. Install Pytagora globally by running
    npm install pytagora
  2. Integrate Pytagora by adding the Express app and mongoose instance to global.Pytagora right after you initialize express/mongoose. Eg. if you initialize Express with let app = express(); than add this on the next line:

    ```
    if (global.Pytagora) global.Pytagora.setApp(app);
    <br><br>
    <h1>Capturing requests</h1>
  3. From the root directory run Pytagora in a capture mode first to capture test data and mocks.

    npx pytagora --mode capture --initScript <path to the file you use to start the server>

    Eg. if you start the server with node server.js than the command would be:

    npx pytagora --mode capture --initScript server.js
  4. Click around your application or make requests to your API. Pytagora will capture all requests and responses.

  5. Run Pytagora in a test mode to run the tests.

      ```
      pytagora --mode test --script <path to the file you use to start the server>
      ```

By default, Pytagora will show you basic code coverage report in the console. If you want to generate a more detailed report, you can do so by running Pytagora with --full-code-coverage-report flag or if you don't want any code coverage displayed, run Pytagora with --no-code-coverage. When you run Pytagora with --full-code-coverage-report flag, it will generate a code_coverage_report directory in the pytagora_data directory in the root of your project. Inside that directory you will find lcov-report/index.html file that you can open in your browser to see the code coverage report.

node RunPytagoraTests.js
0.0.117

1 year ago

0.0.116

1 year ago

0.0.115

1 year ago

0.0.114

1 year ago

0.0.119

1 year ago

0.0.118

1 year ago

0.0.113

1 year ago

0.0.112

1 year ago

0.0.111

1 year ago

0.0.110

1 year ago

0.0.205

1 year ago

0.0.204

1 year ago

0.0.126

1 year ago

0.0.203

1 year ago

0.0.125

1 year ago

0.0.202

1 year ago

0.0.209

1 year ago

0.0.208

1 year ago

0.0.207

1 year ago

0.0.206

1 year ago

0.0.120

1 year ago

0.0.124

1 year ago

0.0.201

1 year ago

0.0.123

1 year ago

0.0.121

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.216

1 year ago

0.0.215

1 year ago

0.0.214

1 year ago

0.0.20

1 year ago

0.0.213

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.219

1 year ago

0.0.23

1 year ago

0.0.218

1 year ago

0.0.24

1 year ago

0.0.217

1 year ago

0.0.25

1 year ago

0.0.212

1 year ago

0.0.211

1 year ago

0.0.210

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.227

1 year ago

0.0.106

1 year ago

0.0.226

1 year ago

0.0.105

1 year ago

0.0.225

1 year ago

0.0.104

1 year ago

0.0.224

1 year ago

0.0.103

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.109

1 year ago

0.0.12

1 year ago

0.0.108

1 year ago

0.0.13

1 year ago

0.0.228

1 year ago

0.0.107

1 year ago

0.0.14

1 year ago

0.0.223

1 year ago

0.0.102

1 year ago

0.0.222

1 year ago

0.0.101

1 year ago

0.0.221

1 year ago

0.0.100

1 year ago

0.0.220

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

1 year ago