# Serverless test CLI

**URL:** <https://forum.serverless.com/t/serverless-test-cli/17653>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [September 25, 2022, 5:51pm UTC](https://forum.serverless.com/t/serverless-test-cli/17653 "2022-09-25T17:51:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaiser101](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kaiser101](https://forum.serverless.com/u/kaiser101)\
**Post date:** [September 25, 2022, 5:51pm UTC](https://forum.serverless.com/t/serverless-test-cli/17653/1 "2022-09-25T17:51:03Z")

</div>

Hello everyone,  
quick question: I’d like to implement some simple HTTP API tests and JSON validations using the serverless CLI test command and the serverless.test.yml, is it still supported as described in this page: [Serverless Dashboard - Testing](https://www.serverless.com/framework/docs/guides/testing)?  
I’ll move to Jest later but for now this would have been enough.

I have the serverless.yml api function as below:

```auto
functions:
  api:
    handler: app.handler
    events:
      - httpApi: "*"

```

And this serverless.test.yml:

```auto
name: "Categories list"
  endpoint:
    function: api
    method: POST
    path: /categories
  response:
    status: 200

```

Trying the command just tells me this:

```auto
$ serverless test
Running "serverless" from node_modules
Environment: darwin, node 16.16.0, framework 3.20.0 (local) 3.22.0v (global), plugin 6.2.2, SDK 4.3.2

Error:
Run "serverless" to configure your service for testing.

```

Any advice on this?

Thanks a lot in advance.  
Davide
