be2dd52cd2
Co-authored-by: Claude <noreply@anthropic.com>
50 lines
1.6 KiB
Markdown
50 lines
1.6 KiB
Markdown
# Testing Website Tutorial
|
|
|
|
A comprehensive guide to testing your LNReader plugins using the web interface.
|
|
|
|
## Getting Started
|
|
|
|
1. **Start the development server:**
|
|
|
|
```bash
|
|
npm run dev:start
|
|
```
|
|
|
|
2. **Open your browser:**
|
|
Navigate to [localhost:3000](http://localhost:3000)
|
|
|
|
3. **Select a plugin:**
|
|
Use the dropdown in the top navigation bar to select the plugin you want to test.
|
|
|
|
## Features Overview
|
|
|
|
The testing website provides five main sections to test different plugin functions:
|
|
|
|
- **Headers** - Configure custom HTTP headers
|
|
- **Popular Novels** - Test `popularNovels()` with pagination and filters
|
|
- **Search Novels** - Test `searchNovels()` with search queries
|
|
- **Parse Novel** - Test `parseNovel()` with a novel path
|
|
- **Parse Chapter** - Test `parseChapter()` with a chapter path
|
|
|
|
## Pre-Submission Testing
|
|
|
|
Before submitting your plugin, verify that:
|
|
|
|
- All five sections work without errors
|
|
- Multiple pages load correctly
|
|
- Search returns accurate results
|
|
- Novel parsing extracts all metadata
|
|
- Chapter content is clean
|
|
- Filters work (if implemented)
|
|
- No console errors appear
|
|
- Paths are properly formatted
|
|
- Images load correctly
|
|
|
|
## Need Help?
|
|
|
|
- **Plugin Development:** See [docs.md](./docs.md) for API reference
|
|
- **Quick Start:** See [quickstart.md](./quickstart.md) for plugin creation
|
|
- **Pre-PR Check:** See [testing.md](./testing.md) for the required `npm run check:plugin` live check
|
|
- **Issues:** Create a [GitHub issue](https://github.com/LNReader/lnreader-plugins/issues/new)
|
|
- **Community:** Join us on [Discord](https://discord.gg/QdcWN4MD63)
|