csv-assert
Node.js Assert tool using CSV file
Last updated 4 years ago by taka8112 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install csv-assert 
SYNC missed versions from official npm registry.

CSV-assert

CSV-assert is server side assert tool. This tool is using Node.js and HTTP request library superagent and mocha and node-csvtojson. CSV-assert is posted in multipart/form-data basically.

Installation

node:

$ npm install csv-assert

To begin example

  1. install it:
$ npm install csv-assert
  1. make assert csv files:

./check/ check.csv

  1. write Assert method

./check.js

```
exapmle

/**
* Assert Space
*/
//res.statusCode.should.eql(statuscode);
//assert.equal(res.body.name, field.name, test);
```

!! assert or a should library is recommended as asserting.
  1. assert start
$ mocha test/chcek.js

Check List Parameters

  • check: true or false (Only when it's true, this library moves.)
  • request: get or post(request method)
  • path: request URL
  • test: test item (ex. max words length Check)
  • session: ON or OFF (cookie registration is needed to use this.)
  • cookie: cookie headers
  • statsuCode: expect response statusCode
  • field: post property(ex. field.name : foo)
  • attach: post image(ex. image : /images/main_image.jpg)
  • param: param requet parameter(':id'is necessary for an end of path to use this ex. /login/:id)
  • query: query requet parameter

Current Tags

  • 1.2.0                                ...           latest (4 years ago)

6 Versions

  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 4
Last Day 0
Last Week 0
Last Month 6
Dependencies (7)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |