GithubHelp home page GithubHelp logo

entest's People

Contributors

peteris-zealid avatar rimantasz avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

rimantasz

entest's Issues

tests without dependent tests are not shown in mermaid graph

can be reproduced by running graph generator only for test this file:

./entest/cli.py tests/graph_mock_tests/dependent_tests_A.py --graph

test case mock_test_a1 is run, but not included in the graph, as mock_test_c1 is determined as a parent formock_test_a2.

the output has 5 tests executed, but only 4 are present in mermaid graph output:

Collecting tests
Collected 15 tests
Removing implicit edges
Resolving dependencies
Will run 5 tests
[โŒ› Not run | mock_test_c1, โŒ› Not run | mock_test_a1]
flowchart TD
subgraph tests
mock_test_c1 --> mock_test_a2
mock_test_a2 --> mock_test_a3
mock_test_a2 --> mock_test_b2
end

Adding mermaid graph to md file

<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
flowchart TD 
  subgraph tests 
  create_user --> create_spam
  create_user --> deposit_money_in_bank
  create_spam --> offer_spam
  offer_spam --> order_spam
  offer_spam --> order_spam_insufficient_funds
  mock_test_c1 --> mock_test_a2
  deposit_money_in_bank -.- order_spam_insufficient_funds
  deposit_money_in_bank --> order_spam
  mock_test_a2 --> mock_test_a3
  mock_test_a2 --> mock_test_b2
  end
  subgraph teardown
  create_user --> delete_user
  create_spam --> eat_spam
  end
  deposit_money_in_bank["deposit_money_in_bank 
      -------  
    deposit_money_in_bank docstring
    "]
  order_spam["order_spam 
      -------  
    order spam docstring
    "]
  mock_test_a1["mock_test_a1 
      -------  None"]
  create_user["create_user 
      -------  
    Create user docstring
    "]
  mock_test_a2["mock_test_a2 
      -------  None"]
  create_spam["create_spam 
      -------  
    Create spam docstring
    "]
  offer_spam["offer_spam 
      -------  
    Offer spam docstring
    "]
  empty_setup["empty_setup 
      -------  None"]
  mock_test_c1["mock_test_c1 
      -------  None"]
  close_threads_automatically["close_threads_automatically 
      -------  None"]
  mock_test_a3["mock_test_a3 
      -------  None"]
  mock_test_b2["mock_test_b2 
      -------  None"]
  eat_spam["eat_spam 
      -------  
    eat spam docstring
    "]
  order_spam_insufficient_funds["order_spam_insufficient_funds 
      -------  
    order_spam_insufficient_funds docstring
    "]
  delete_user["delete_user 
      -------  
    delete_user docstring
    "]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.