Skip to content

Run markdown_snapshot_spec.rb when needed

What does this MR do and why?

Related: Tracking Issue: Implement GLFM scripts per the ... (#361241 - closed)

Implements suggestion from !102244 (comment 1152819487) to ensure spec/requests/api/markdown_snapshot_spec.rb and ee/spec/requests/api/markdown_snapshot_spec.rb run when GLFM config files are changed.

References

See the GLFM Specification Guide development documentation for much more context on all of this work: https://docs.gitlab.com/ee/development/gitlab_flavored_markdown/specification_guide

Testing

Run tooling/bin/find_tests with appropriate input file parameter containing a GLFM config file, and ensure that both specs get properly identified in the output file.

tooling/bin/find_tests /tmp/changed.txt /tmp/matching.txt

Example:

Screen_Shot_2022-11-02_at_2.31.55_PM

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Chad Woolley

Merge request reports

Loading