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

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

testreport

इस पुस्तकालय का उपयोग डार्ट परीक्षणों के परिणामों को संसाधित करने के लिए किया जा सकता है। यह डार्ट परीक्षण रनर द्वारा उत्पन्न `json` आउटपुट से डेटा को संसाधित करता है और परीक्षण परिणामों के लिए एक API प्रदान करता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
3.5 लाख
लाइक
3
Pub अंक
160

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

flutter pub add testreport

पैकेज अवलोकन

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

testreport पैकेज डार्ट टेस्ट रनर द्वारा उत्पन्न JSON आउटपुट से डार्ट टेस्ट परिणामों को संसाधित करता है। यह परिणामों से लंबित/असफल स्थिति, अवधि और त्रुटियों जैसी महत्वपूर्ण जानकारी निकालने के लिए एक संरचित API प्रदान करता है। इसका उपयोग CI/CD पाइपलाइन में परीक्षण परिणामों को शामिल करने, रिपोर्ट बनाने या प्लेटफॉर्म के आधार पर परीक्षण प्रदर्शन को दर्शाने के लिए विशेष रूप से उपयोगी है। यह पुस्तकालय सभी प्रमुख फ्लटर प्लेटफॉर्म का समर्थन करता है, जिससे यह क्रॉस-प्लेटफॉर्म टेस्टिंग कार्यप्रवाह के लिए आदर्श है।

उपयोग

  • CI/CD एकीकरण
  • परीक्षण परिणाम विश्लेषण
  • स्वचालित रिपोर्टिंग
  • क्रॉस-प्लेटफ़ॉर्म परीक्षण
  • परीक्षण डैशबोर्डिंग

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

  • JSON परिणाम विश्लेषण
  • Platform-agnostic
  • त्रुटि और अवधि निकालना
  • संरचित डेटा API
  • सभी फ्लटर प्लेटफॉर्म को समर्थन करता है

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

  • CI/CD प्रणाली
  • टेस्ट ऑटोमेशन टीम
  • गुणवत्ता आश्वासन इंजीनियर
  • Flutter का उपयोग करने वाले विकासकर्ता
  • रिपोर्टिंग टूल्स

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

  • dart test runner से JSON आउटपुट की आवश्यकता है
  • पोस्ट-टेस्ट प्रोसेसिंग तक सीमित
  • कोई रियल-टाइम परीक्षण मॉनिटरिंग नहीं
  • परीक्षण रनर आउटपुट प्रारूप पर निर्भर
  • परीक्षणों को सीधे चलाने के लिए नहीं

मूल README

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

Test Report

Introduction

This library can be used to process the results of dart tests.

The goal of this library is to process the data from the json output emitted by the dart test runner and provide an API to the interpreted test results.

Purpose

By running

pub run test simple_test.dart --reporter json

and the contents of simple_test.dart is

import 'package:test/test.dart';

main() {
  test('simple', () {
    expect(true, true);
  });
}

the dart test runner will output the results of the test in json format as a stream of events:

{"protocolVersion":"0.1.0","runnerVersion":"0.12.13+1","type":"start","time":0}
{"count":1,"type":"allSuites","time":0}
{"suite":{"id":0,"platform":"vm","path":"simple_test.dart"},"type":"suite","time":0}
{"test":{"id":1,"name":"loading simple_test.dart","suiteID":0,"groupIDs":[],"metadata":{"skip":false,"skipReason":null}},"type":"testStart","time":0}
{"testID":1,"result":"success","hidden":true,"type":"testDone","time":237}
{"group":{"id":2,"suiteID":0,"parentID":null,"name":null,"metadata":{"skip":false,"skipReason":null},"testCount":1},"type":"group","time":241}
{"test":{"id":3,"name":"simple","suiteID":0,"groupIDs":[2],"metadata":{"skip":false,"skipReason":null}},"type":"testStart","time":242}
{"testID":3,"result":"success","hidden":false,"type":"testDone","time":268}
{"success":true,"type":"done","time":271}

From this json output, it is not easy to see how many tests were executed, how many failed and how much time was spent in each test.

The Processor in this project takes the json events, and turns them into a Report, that is suitable for further processing.

License and contributors

श्रेणियाँ

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

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