Test your REST APIs with ease
Nirikshak is a REST API testing framework. It leverages the REST semantics and provides autonomous testing. That means you get to kick back and relax while we do all the hard work for you.
Disclaimer: The project is still in infancy and is limited in scope and capabilities. But you can extend the framework to suit your needs. For more, read on.
Nirikshak generates test cases, runs them and analyses them for you. The flow can be summarised as below:
- It generates a generic suite of test cases on initialisation.
- You provide a description of your API to Nirikshak.
- It reads that description on runtime and links it to the test cases.
- It invokes jest to run your tests cases.
- It analyses the test log generated and provides you with a report.
Nirikshak works on APIs that:
- Are written in typescript
- Use JSON as their hypermedia format to expose data
- Perform CRUD operations on resources
- Follow REST standards
Nirikshak performs unit functional tests on them. At a glance, this seems very restrictive. But the best part is that the framework is extentsible. We expose the internal APIs that we use to make tests work. You can leverage them to write your own tests.
- Rest semantics and how we interpret them
- Possible outcomes to a request
- Request relationship graph
- Flow of testing
- Data analysis
- @nirikshak/cli: CLI tool that manages tests for your project
- @nirikshak/core: Core logic that makes tests work
- @nirikshak/reporter: Jest reporter that generates reports for you