Files
app-ethereum/tests/speculos
2022-07-04 10:40:01 +02:00
..
2022-06-28 15:11:20 +02:00
2022-06-30 13:43:59 +02:00
2022-06-28 15:11:20 +02:00
2022-07-01 14:03:02 +02:00
2022-06-28 15:11:20 +02:00
2022-06-28 15:11:20 +02:00
2022-07-01 14:03:02 +02:00
2022-07-01 14:03:02 +02:00
2022-07-04 10:40:01 +02:00
2022-07-01 14:03:02 +02:00
2022-07-01 14:03:02 +02:00

Speculos functional tests

These tests are implemented in Python with the SpeculosClient interface which allows easy execution on the Speculos emulator.

Requirements

Dependencies

Python dependencies are listed in requirements.txt

python3 -m pip install --extra-index-url https://test.pypi.org/simple/ -r requirements.txt

The extra index allows to fetch the latest version of Speculos.

Usage

Given the requirements are installed, just do:

pytest tests/speculos/

Tests by APDU

you will find the list of apdu here

  • Get
    • GET APP CONFIGURATION ( 1 test )
      • Get the configuration
    • GET ETH PUBLIC ADDRESS ( 3 tests )
      • Ether coin without display
      • Dai coin with display
      • Dai coin with display and reject
    • GET ETH2 PUBLIC KEY
      • Test get key
      • Test get key with display