Mocha Tags for Test Filtering
JSON →mocha-tags-ultra is a utility for the Mocha test framework that allows developers to associate tags with their test suites and individual tests. It enables runtime filtering of tests based on these tags, supporting 'is:' and 'not:' criteria, as well as logical AND ('+') for more granular control. This is particularly useful for segmenting tests (e.g., 'unit', 'integration', 'network') and running only relevant subsets during development or CI/CD pipelines. The current stable version is 1.0.3. The package integrates by wrapping Mocha's `describe` and `it` functions, providing a fluent API for tag assignment. Key differentiators include its simple CLI integration, programmatic filtering options, and clear indication of skipped tests as 'pending' in Mocha's output.
Traffic · last 30 days ↑33% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇮🇳 India · 🇩🇪 Germany