Features and their tests
Every feature of this repository and the tests that check it.
python3 scripts/test-all.py runs them and checks that every row names a
test that exists. A new feature or plugin comes with its tests and a row
here, in the same pull request. How the Tests column is written, and what
goes into tests/suite.json, is on the Testing page of OxiGuitar’s manual
(docs/manual/src/testing.md in the OxiGuitar repository).
| Feature | What it does | Tests |
|---|---|---|
| A plugin that keeps the contract | Loads in OxiGuitar’s host, with a valid manifest that lists every palette tool. | contract::the_plugin_file_keeps_the_contract, tests::the_manifest_is_valid_for_the_plugin, tests::every_palette_tool_is_in_the_manifest |
| Plectrum or Fingerstyle per track | Chosen in the Track tab’s Picking section; a track nobody set follows its instrument (fingers for nylon guitar and fingered bass). Only fretted and fretless tracks. | settings::tests::a_track_nobody_set_follows_its_instrument_and_a_choice_wins, section::tests::the_section_lists_both_ways_and_picks_one, perform::tests::nylon_guitars_default_to_fingers_and_other_classes_are_left_alone |
| The palette’s buttons | Downward and Upward Pickstroke on beats, p, i, m and a on notes: the caret’s or the selection’s, on unless all have it, then off. | marks::tests::a_pick_stroke_goes_on_every_selected_beat_with_notes_then_comes_off, marks::tests::a_finger_goes_on_the_note_on_the_caret_s_string_or_every_selected_note |
| The plectrum’s pendulum | Down on the beat: eighths and sixteenths alternate, a gallop goes down, down-up, quarter notes all down, and triplets keep alternating. | perform::tests::a_plectrum_swings_down_on_the_beat, perform::tests::through_triplets_the_hand_keeps_alternating, perform::tests::lengths_count_dots_and_tuplets |
| Fingerstyle | The thumb down on the bass strings, i, m and a up on the treble ones; a lone treble note alternates i and m; a chord is shared out. | perform::tests::fingerstyle_plays_the_thumb_down_and_the_fingers_up, perform::tests::a_chord_is_one_stroke_and_fingers_share_it_out |
| Written marks win | Written strokes and fingers are played as written; notes not picked take no stroke, and a rest breaks the chain. | perform::tests::what_the_score_writes_wins, perform::tests::notes_not_picked_and_rests_break_nothing |
| Restrike and glide | The same direction on the same ringing string restrikes; onto another string it glides; through OxiGuitar’s host too. | perform::tests::a_plectrum_swings_down_on_the_beat, contract::the_host_plays_a_track_as_it_is_picked |
| Plugins > Picking… | The numbers the picking is most sensitive to, a slider each, kept in settings.json with Apply or OK (Cancel forgets, Defaults sets back): the hand’s coarsest swing and ringing window, and how each kind of stroke sounds, handed to the instrument through the picking-sound service. | calibration::tests::unset_or_unreadable_values_are_the_defaults_and_others_read_back, calibration::tests::a_knob_snaps_to_its_range_and_step_and_reads_in_its_unit, calibration::tests::the_service_answers_the_sound_knobs_only, window::tests::the_window_lists_the_hand_and_the_sound_and_its_sliders_set_them, window::tests::cancel_forgets_what_was_not_applied, perform::tests::the_calibration_sets_the_coarsest_swing_and_how_long_a_note_rings, contract::the_calibration_in_settings_json_reaches_the_instrument_through_the_service |