This repository contains testing scripts for the QPP Conversion Tool.
This project provides automated testing capabilities for the QPP Conversion Tool, allowing you to verify functionality across different environments.
- Clone the repository:
git clone https://github.com/CMSgov/qpp-conversion-tool-testing.git
cd qpp-conversion-tool-testing
- Install dependencies:
npm install
- Configure environment variables:
- Create a
.env
file in the root directory with the necessary configuration - Example configuration based on your current environment:
# URLs for different environments URL_DEV=https://dev.qpp.cms.gov URL_IMP=https://imp.qpp.cms.gov URL_DEVPRE=https://preview.qpp.cms.gov # Authentication token (replace with your actual token) IMPLTOKEN=qpp_auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... # The environment to test in TEST_ENV=DEV # Testing year CT_YEAR=2025
- Create a
- Run tests against the implementation environment:
npm run test:impl
- Run tests against the development environment:
npm run test:dev
- Run date format tests only:
npm run test:dateFormat
- Run warning message tests only:
npm run test:warnings
Tests can be configured using the following approaches:
- Environment variables in your
.env
file - Command line parameters:
TEST_PARAM=value npm run test:dev
- Configuration files in the
config/
directory
Test reports are generated after each test run and can be found in the reports/
directory.
If you encounter issues:
- Ensure your API keys and environment variables are correctly set
- Check network connectivity to the test environments
- Verify that the QPP Conversion Tool instances are running and accessible
- Review the logs in the
logs/
directory for detailed error information
- Create a branch for your changes
- Make your changes and write tests
- Submit a pull request for review