Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ clean:

.PHONY: test
test: qless.lua *.lua
nosetests --exe -v
nosetests --exe -v $(TEST)
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,25 @@ installed:
pip install redis nose
```

To run the tests, there is a directive included in the makefile:
To run all the tests, there is a directive included in the makefile:

```bash
make test
```

You can run specific test files by passing the TEST environment variable to make:

```bash
make test TEST=test/test_worker.py
```

or for a single test case in that file:

```bash
make test TEST=test/test_worker.py:TestWorker.test_basic
```


If you have Redis running somewhere other than `localhost:6379`, you can supply
the `REDIS_URL` environment variable:

Expand Down