This project is built upon lc3-ensemble. This module is an autograder library to test programs written in LC-3 assembly. To see the functions and how to implement an autograder, see doc/API.md
.
To install this package, you can use pip:
pip install lc3-ensemble-test
To install additional packages to help create autograders for GT CS 2110,
pip install "lc3-ensemble-test[std]"
There are several ways to display test results using pytest
's built-in functionality.
pytest
pytest --html=report.html --self-contained-html
The conftest.py
provided in examples/
will automatically open the generated page in a web browser.
pytest --junitxml=report.xml
If standard dependencies are not included, autograders can still be run with unittest
.
python3 -m unittest <DIR>
- Create a Python virtual environment with
python -m venv .env
- Activate the environment by running the activate script:
- Windows:
.env\Scripts\activate
- Other:
source .env/bin/activate
- Windows:
- Install maturin (
pip install maturin
) - Run
maturin develop
- Import the
ensemble_test.core
orensemble_test.autograder
modules while inside the virtual environment
If installing directly from this repository,
pip install .
: Install the barebones autograderpip install ".[std]"
: Install the autograder and additional packages to help create autograders for CS 2110.