पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv2.0.2

test_descriptor

फ़ाइल और निर्देशिका संरचनाओं को परिभाषित और सत्यापित करने के लिए एक API।

AndroidiOSmacOSWindowsLinux
30-दिन डाउनलोड
2.2 लाख
लाइक
4
Pub अंक
160

पैकेज इंस्टॉल करें

flutter pub add test_descriptor

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

test_descriptor एक Dart पैकेज है जिसका उद्देश्य परीक्षण के दौरान फ़ाइल और डिरेक्टरी संरचना के निर्माण और मान्यता को सरल बनाना है। इसमें प्रतीक्षित फ़ाइल व्यवस्था को परिभाषित करने के लिए एक स्पष्ट, व्यक्तिगत API प्रदान करता है, जिससे परीक्षण फिक्सचर सेटअप और फ़ाइल सिस्टम अवस्था की जाँच करना आसान हो जाता है। फ़ाइल ऑपरेशन वाले इंटीग्रेशन और एंड-टू-एंड परीक्षण के लिए उपयुक्त, यह जटिल डिरेक्टरी हायरार्की के साथ काम करते समय सुसंगतता सुनिश्चित करता है और बॉलरप्लेट को कम करता है। पैकेज Dart टीम द्वारा बनाए रखा जाता है और टेस्ट फ्रेमवर्क के साथ बिना किसी दिक्कत के एकीकृत होता है।

उपयोग

  • फ़ाइल प्रणाली इंटरैक्शन का परीक्षण
  • परीक्षण फिक्सचर सेट करना
  • निर्देशिका संरचना की जाँच करना
  • उत्पादित फ़ाइलों की पुष्टि करना
  • फ़ाइल I/O के साथ एंटीग्रेशन परीक्षण
  • स्वचालित परीक्षण सेटअप

मुख्य विशेषताएँ

  • घोषित फ़ाइल संरचना परिभाषा
  • निर्मित वेरिफिकेशन उपकरण
  • नेस्टेड निर्देशिकाओं का समर्थन करता है
  • पढ़ने और बनाए रखने में आसान
  • test पैकेज के साथ काम करता है
  • क्रॉस-प्लेटफॉर्म संगतता

इनके लिए उपयुक्त

  • इकाई और एंटीग्रेशन परीक्षण
  • फ़ाइल-आधारित टूल परीक्षण
  • कोड जनरेशन वैधता
  • CI/CD पाइपलाइन परीक्षण
  • Dart पैकेज विकास
  • परीक्षण फिक्सचर प्रबंधन

विचार योग्य बातें

  • test पैकेज पर निर्भरता की आवश्यकता है
  • रनटाइम उपयोग के लिए नहीं बनाया गया है
  • केवल परीक्षण वातावरण के लिए सीमित
  • अत्यधिक उपयोग करने पर परीक्षण सूट की जटिलता बढ़ सकती है
  • अन्य परीक्षण उपकरणों के साथ सबसे अच्छा उपयोग किया जाता है
  • फ़ाइल सामग्री अंतरों को सीधे संभालता है नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Dart CI OpenSSF Scorecard

What's here?

Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api and package:test_core are implementation details and generally not user-facing.

package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher and features a literate API.

Packages

Package Description Issues Version
checks A framework for checking values against expectations and building custom expectations. issues pub package
fake_async Fake asynchronous events such as timers and microtasks for deterministic testing. issues pub package
matcher Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. issues pub package
test A full featured library for writing and running Dart tests across platforms. issues pub package
test_api The user facing API for structuring Dart tests and checking expectations. pub package
test_core A basic library for writing tests and running them on the VM. pub package
test_descriptor An API for defining and verifying files and directory structures. issues pub package
test_process Test processes: starting; validating stdout and stderr; checking exit code. issues pub package

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 5 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट