question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improvements to generate_test_cases.py

See original GitHub issue

Prerequisites

Description

The script generate_test_cases.py was used to generate the content in #667. This is a placeholder issue to track improvements that could be made to the script.

Steps to Reproduce

  1. cd constellation
  2. python ../constellation-miscellaneous/TestCaseGenerator/generate_test_cases.py > output

Suggestions

  • Sort the list of views and plugins alphabetically
  • Fix the cases where the menu option is empty
  • The script should be able to accept multiple folders so you could generate it for constellation and constellation-adaptors in the one script
  • exclude any disabled actions or plugins
  • some actions missing like “Arrange by Layers”
  • There’s no item to test Tools/Cluster > Hierarchical, and K-Truss should be listed as Tools/Cluster >K-Truss

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sol695510commented, Jul 16, 2020

The Arrange by Layers action in the test cases isn’t present in rc2 as well.

I’ve noticed that some actions such as the arrange in group action plugin are disabled in constellation but are still included in the generated test cases. Perhaps the script should ignore them if possible.

1reaction
Auriga2commented, Jul 15, 2020

Not sure if this can be fixed in the script: There’s no item to test Tools/Cluster > Hierarchical, and K-Truss should be listed as Tools/Cluster >K-Truss

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to auto generate test cases for parameter-less methods?
EDIT: If i move the code in setupClass to the global scope (outside the class), then py.test detects and runs the auto-generated test...
Read more >
Trigger-Word-Detection/generateTestCases.py at main - GitHub
Coursera - RNN Programming Assignment: In this project, we will construct a speech dataset and implement an algorithm for trigger word detection (sometimes ......
Read more >
12 Best Automated Unit Testing Tools [LATEST 2022 RANKING]
Click to Generate test cases. ... Languages - Javascript, Typescript and Python ... Automate unit tests for JS, Typescript, and Python.
Read more >
Testing your Python Code with Hypothesis
One of the defining features of Hypothesis is its ability to generate test cases automatically in a manner that is: Reproducible. Repeated invocations...
Read more >
Test Case Generation | Set 1 (Random Numbers, Arrays and ...
Hence this Set will be very important for all aspiring software developers. The following are the programs to generate test cases.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found