Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comprehensive testing script with RSpec + Aruba #31

Closed
29 tasks done
wtsnjp opened this issue Oct 1, 2018 · 1 comment
Closed
29 tasks done

Comprehensive testing script with RSpec + Aruba #31

wtsnjp opened this issue Oct 1, 2018 · 1 comment
Assignees
Labels
spec Testing scripts

Comments

@wtsnjp
Copy link
Member

wtsnjp commented Oct 1, 2018

Texdoc used to have only limited test scripts. Since I became a maintainer of the program, I have been trying to write comprehensive test scripts with RSpec + Aruba, but the work is still in progress.

Here's a rough plan of the entire specs (this will be updated accordingly):

  • action
    • files: the --files action
    • help: the --help action
    • version: the --version action
    • just view: the --just-view action
  • config
    • built-in: the default values
    • environment variables: does ENV work?
    • texdoc.cnf: does texdoc.cnf work?
    • texdoc-dist.cnf: is the shipped texdoc.cnf fine?
  • misc
    • errors: error messages and status codes
    • getopt: the command line option (CMO) parser
    • verbose: info messages (messages output with -v option)
  • mode
    • view: the view mode (-w)
    • mixed: the mixed mode (-m)
    • list: the list mode (-l)
    • showall: the showall mode (-s)
  • score
    • adjscore: the adjscore directive
    • heuristic: the heuristic pattern score, bonus score
    • order: docfile order
  • search
    • fuzzy: fuzzy search
    • aliases: the aliases in texdoc.cnf
    • texdocs: documents in TEXDOCS
    • database: documents in databases
  • unit
    • texdoclib: check for overall behavior
    • alias: unit tests for texdoclib-alias.tlu
    • score: unit tests for texdoclib-score.tlu
    • search: unit tests for texdoclib-search.tlu
    • util: unit tests for texdoclib-util.tlu
  • view
    • file detection: for each extension
    • command: the view commands
@wtsnjp wtsnjp added the help wanted Extra attention is needed label Oct 1, 2018
@wtsnjp wtsnjp assigned wtsnjp and unassigned wtsnjp Oct 5, 2018
@wtsnjp wtsnjp removed the help wanted Extra attention is needed label Feb 21, 2023
@wtsnjp wtsnjp self-assigned this Feb 22, 2023
@wtsnjp wtsnjp changed the title Writing complehensive test scripts (specs) Comprehensive testing script with RSpec + Aruba Feb 23, 2023
@wtsnjp wtsnjp added the spec Testing scripts label Feb 4, 2024
@wtsnjp
Copy link
Member Author

wtsnjp commented Aug 13, 2024

Finally, mission completed!! (cb22b6c)

@wtsnjp wtsnjp closed this as completed Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Testing scripts
Projects
None yet
Development

No branches or pull requests

1 participant