# Lesson 6.5: Testing Smart Contracts with Lucid

Welcome to Lesson 6.5! In this lesson, you'll learn how to test off-chain code with Lucid.

{% embed url="<https://youtu.be/aUrIuDQgg5c>" %}

{% tabs %}
{% tab title="Learning Objectives" %}
After completing this lesson, you'll be able to:

* Explain the process of testing off-chain code with Lucid.
* Describe how to use the emulator to run a local blockchain for testing.
* Create and run tests by using Lucid.
  {% endtab %}

{% tab title="Lesson Resources" %}
Internet resources mentioned in the lesson's video:

* [Lucid Emulator](https://deno.land/x/lucid@0.9.8/mod.ts?=Emultator\&s=Emulator)
* [Unit Testing in Deno](https://deno.com/manual@v1.32.3/basics/testing)
* [Fast Check](https://github.com/dubzzz/fast-check)
  {% endtab %}
  {% endtabs %}

## Collaborate with the Pioneers Community

Remember that you can interact with the participants of the PPP through the [IOG's technical community on Discord](https://discord.gg/inputoutput) by joining the channels under the Plutus Pioneers category.

If during the program you have questions about Plutus, we invite you to share them at [Cardano Stack Exchange (CSE)](https://cardano.stackexchange.com/) by adding the `plutus-pioneer-program` tag to your question. The IOG's Education Team members will monitor these questions to support your learning journey. Whenever you share a question at CSE, you're helping to build up the Cardano and Plutus development knowledge base.

***

This work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).

<figure><img src="https://i.creativecommons.org/l/by/4.0/88x31.png" alt="Creative Commons License BY 4.0"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://iog-academy.gitbook.io/plutus-pioneers-program-fourth-cohort/lectures/lecture-06/lesson-05.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
