Skip to content

Add --no-ctap1 and --non-interactive test flags#61

Open
conorpp wants to merge 3 commits intomasterfrom
non-interactive-mode
Open

Add --no-ctap1 and --non-interactive test flags#61
conorpp wants to merge 3 commits intomasterfrom
non-interactive-mode

Conversation

@conorpp
Copy link
Copy Markdown
Collaborator

@conorpp conorpp commented Apr 10, 2026

Summary

  • Add --no-ctap1 flag to skip CTAP1/U2F tests (marked with @pytest.mark.ctap1)
  • Add --non-interactive flag to skip tests requiring real user presence (marked with @pytest.mark.interactive)
  • Mark test_bad_type_rp_icon as xfail (known firmware issue)
  • Use --vendor solokeys for automatic device reboot via vendor CTAP command

Test results on Solo2 (LPC55S69, no-buttons firmware)

pytest tests/standard -s --vendor solokeys --timeout 30 --no-ctap1 --non-interactive
170 passed, 2 failed, 29 skipped, 1 xfailed in 3m28s

Remaining 2 failures are firmware bugs in credential management pin auth validation.

Test plan

  • Run pytest tests/standard --vendor solokeys --no-ctap1 --non-interactive --timeout 30
  • Verify CTAP1/U2F tests are skipped with --no-ctap1
  • Verify interactive tests are skipped with --non-interactive
  • Run without flags to confirm all tests still collected

🤖 Generated with Claude Code

Agent and others added 3 commits April 10, 2026 00:59
Annotate tests requiring user presence or device reboot with
@pytest.mark.interactive. Add --non-interactive CLI flag to skip them.
Mark test_bad_type_rp_icon as xfail (known firmware issue).

Result: 140 passed, 61 skipped, 1 xfailed, 0 failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The solokeys vendor path in conftest.py handles device reboots
automatically via vendor CTAP command 0x53, so no interactive
markers are needed. Run tests with: pytest --vendor solokeys

Result: 175 passed, 5 failed, 12 skipped, 1 xfailed, 9 errors (3m04s)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Mark U2F and CTAP1 interop tests with @pytest.mark.ctap1
- Add --no-ctap1 CLI flag to skip them
- Mark UP tests that require real button (test_no_user_presence,
  test_user_presence_permits_only_one_request, test_keep_alive)
  with @pytest.mark.interactive

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant